FAQ
Author: cws
Date: Mon Jun 25 19:59:44 2012
New Revision: 1353720

URL: http://svn.apache.org/viewvc?rev=1353720&view=rev
Log:
Hive thrift code doesnt generate quality hashCode()
(Liu Tim via Carl Steinbach)

Summary:

Hive thrift code doesnt generate quality hashCode(). Right now, it all has
@Override
public int hashCode() { return 0; }

It will cause all entries go to the same bucket if it's used as hash key.


Test Plan:
ant clean package test

pass 1946 tests

Reviewers: njain, kevinwilfong, cwsteinbach

Reviewed By: cwsteinbach

Differential Revision: https://reviews.facebook.net/D3759

Modified:
hive/trunk/build-common.xml
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlreadyExistsException.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ConfigValSecurityException.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Constants.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FieldSchema.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectPrivilege.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectRef.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/IndexAlreadyExistsException.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidObjectException.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidOperationException.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidPartitionException.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/MetaException.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchObjectException.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Order.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeBag.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeGrantInfo.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Role.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Type.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownDBException.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownPartitionException.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownTableException.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Version.java
hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Adjacency.java
hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Graph.java
hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Operator.java
hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Query.java
hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/QueryPlan.java
hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Stage.java
hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Task.java
hive/trunk/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/Constants.java
hive/trunk/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveClusterStatus.java
hive/trunk/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveServerException.java
hive/trunk/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/ThriftHive.java

Modified: hive/trunk/build-common.xml
URL: http://svn.apache.org/viewvc/hive/trunk/build-common.xml?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/build-common.xml (original)
+++ hive/trunk/build-common.xml Mon Jun 25 19:59:44 2012
@@ -38,7 +38,7 @@
<property name="build.classes" location="${build.dir}/classes"/>
<property name="build.encoding" value="ISO-8859-1"/>

- <property name="thrift.args" value="-I ${thrift.home} --gen java:beans --gen cpp --gen php --gen py --gen rb"/>
+ <property name="thrift.args" value="-I ${thrift.home} --gen java:beans,hashcode --gen cpp --gen php --gen py --gen rb"/>

<property name="hadoop.conf.dir" location="${hadoop.root}/conf"/>

@@ -68,7 +68,7 @@

<property name="hadoop.opts.23" value="-D mapreduce.framework.name=local" />
<property name="hadoop.opts.20" value="" />
-
+
<path id="test.classpath">
<pathelement location="${test.build.classes}" />
<pathelement location="${test.build.resources}" />
@@ -170,7 +170,7 @@
<pathelement location="${build.dir.hive}/classes"/>
<fileset dir="${build.dir.hive}" includes="*/*.jar"/>
<fileset dir="${hive.root}/lib" includes="*.jar"/>
- <fileset dir="${build.ivy.lib.dir}/default" includes="*.jar"
+ <fileset dir="${build.ivy.lib.dir}/default" includes="*.jar"
erroronmissingdir="false"/>
</path>

@@ -376,7 +376,7 @@
</if>
<if>
<equals arg1="${test.print.classpath}" arg2="true" />
- <then>
+ <then>
<echo message="Test Classpath: ${hadoop.testcp}"/>
</then>
</if>

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlreadyExistsException.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlreadyExistsException.java?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlreadyExistsException.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlreadyExistsException.java Mon Jun 25 19:59:44 2012
@@ -5,6 +5,7 @@
*/
package org.apache.hadoop.hive.metastore.api;

+import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -209,7 +210,14 @@ public class AlreadyExistsException exte

@Override
public int hashCode() {
- return 0;
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_message = true && (isSetMessage());
+ builder.append(present_message);
+ if (present_message)
+ builder.append(message);
+
+ return builder.toHashCode();
}

public int compareTo(AlreadyExistsException other) {

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ConfigValSecurityException.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ConfigValSecurityException.java?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ConfigValSecurityException.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ConfigValSecurityException.java Mon Jun 25 19:59:44 2012
@@ -5,6 +5,7 @@
*/
package org.apache.hadoop.hive.metastore.api;

+import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -209,7 +210,14 @@ public class ConfigValSecurityException

@Override
public int hashCode() {
- return 0;
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_message = true && (isSetMessage());
+ builder.append(present_message);
+ if (present_message)
+ builder.append(message);
+
+ return builder.toHashCode();
}

public int compareTo(ConfigValSecurityException other) {

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Constants.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Constants.java?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Constants.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Constants.java Mon Jun 25 19:59:44 2012
@@ -5,6 +5,7 @@
*/
package org.apache.hadoop.hive.metastore.api;

+import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java Mon Jun 25 19:59:44 2012
@@ -5,6 +5,7 @@
*/
package org.apache.hadoop.hive.metastore.api;

+import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -464,7 +465,34 @@ public class Database implements org.apa

@Override
public int hashCode() {
- return 0;
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_name = true && (isSetName());
+ builder.append(present_name);
+ if (present_name)
+ builder.append(name);
+
+ boolean present_description = true && (isSetDescription());
+ builder.append(present_description);
+ if (present_description)
+ builder.append(description);
+
+ boolean present_locationUri = true && (isSetLocationUri());
+ builder.append(present_locationUri);
+ if (present_locationUri)
+ builder.append(locationUri);
+
+ boolean present_parameters = true && (isSetParameters());
+ builder.append(present_parameters);
+ if (present_parameters)
+ builder.append(parameters);
+
+ boolean present_privileges = true && (isSetPrivileges());
+ builder.append(present_privileges);
+ if (present_privileges)
+ builder.append(privileges);
+
+ return builder.toHashCode();
}

public int compareTo(Database other) {

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java Mon Jun 25 19:59:44 2012
@@ -5,6 +5,7 @@
*/
package org.apache.hadoop.hive.metastore.api;

+import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -234,7 +235,14 @@ public class EnvironmentContext implemen

@Override
public int hashCode() {
- return 0;
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_properties = true && (isSetProperties());
+ builder.append(present_properties);
+ if (present_properties)
+ builder.append(properties);
+
+ return builder.toHashCode();
}

public int compareTo(EnvironmentContext other) {

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FieldSchema.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FieldSchema.java?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FieldSchema.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FieldSchema.java Mon Jun 25 19:59:44 2012
@@ -5,6 +5,7 @@
*/
package org.apache.hadoop.hive.metastore.api;

+import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -325,7 +326,24 @@ public class FieldSchema implements org.

@Override
public int hashCode() {
- return 0;
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_name = true && (isSetName());
+ builder.append(present_name);
+ if (present_name)
+ builder.append(name);
+
+ boolean present_type = true && (isSetType());
+ builder.append(present_type);
+ if (present_type)
+ builder.append(type);
+
+ boolean present_comment = true && (isSetComment());
+ builder.append(present_comment);
+ if (present_comment)
+ builder.append(comment);
+
+ return builder.toHashCode();
}

public int compareTo(FieldSchema other) {

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectPrivilege.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectPrivilege.java?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectPrivilege.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectPrivilege.java Mon Jun 25 19:59:44 2012
@@ -5,6 +5,7 @@
*/
package org.apache.hadoop.hive.metastore.api;

+import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -395,7 +396,29 @@ public class HiveObjectPrivilege impleme

@Override
public int hashCode() {
- return 0;
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_hiveObject = true && (isSetHiveObject());
+ builder.append(present_hiveObject);
+ if (present_hiveObject)
+ builder.append(hiveObject);
+
+ boolean present_principalName = true && (isSetPrincipalName());
+ builder.append(present_principalName);
+ if (present_principalName)
+ builder.append(principalName);
+
+ boolean present_principalType = true && (isSetPrincipalType());
+ builder.append(present_principalType);
+ if (present_principalType)
+ builder.append(principalType.getValue());
+
+ boolean present_grantInfo = true && (isSetGrantInfo());
+ builder.append(present_grantInfo);
+ if (present_grantInfo)
+ builder.append(grantInfo);
+
+ return builder.toHashCode();
}

public int compareTo(HiveObjectPrivilege other) {

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectRef.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectRef.java?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectRef.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectRef.java Mon Jun 25 19:59:44 2012
@@ -5,6 +5,7 @@
*/
package org.apache.hadoop.hive.metastore.api;

+import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -473,7 +474,34 @@ public class HiveObjectRef implements or

@Override
public int hashCode() {
- return 0;
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_objectType = true && (isSetObjectType());
+ builder.append(present_objectType);
+ if (present_objectType)
+ builder.append(objectType.getValue());
+
+ boolean present_dbName = true && (isSetDbName());
+ builder.append(present_dbName);
+ if (present_dbName)
+ builder.append(dbName);
+
+ boolean present_objectName = true && (isSetObjectName());
+ builder.append(present_objectName);
+ if (present_objectName)
+ builder.append(objectName);
+
+ boolean present_partValues = true && (isSetPartValues());
+ builder.append(present_partValues);
+ if (present_partValues)
+ builder.append(partValues);
+
+ boolean present_columnName = true && (isSetColumnName());
+ builder.append(present_columnName);
+ if (present_columnName)
+ builder.append(columnName);
+
+ return builder.toHashCode();
}

public int compareTo(HiveObjectRef other) {

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java Mon Jun 25 19:59:44 2012
@@ -5,6 +5,7 @@
*/
package org.apache.hadoop.hive.metastore.api;

+import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -759,7 +760,59 @@ public class Index implements org.apache

@Override
public int hashCode() {
- return 0;
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_indexName = true && (isSetIndexName());
+ builder.append(present_indexName);
+ if (present_indexName)
+ builder.append(indexName);
+
+ boolean present_indexHandlerClass = true && (isSetIndexHandlerClass());
+ builder.append(present_indexHandlerClass);
+ if (present_indexHandlerClass)
+ builder.append(indexHandlerClass);
+
+ boolean present_dbName = true && (isSetDbName());
+ builder.append(present_dbName);
+ if (present_dbName)
+ builder.append(dbName);
+
+ boolean present_origTableName = true && (isSetOrigTableName());
+ builder.append(present_origTableName);
+ if (present_origTableName)
+ builder.append(origTableName);
+
+ boolean present_createTime = true;
+ builder.append(present_createTime);
+ if (present_createTime)
+ builder.append(createTime);
+
+ boolean present_lastAccessTime = true;
+ builder.append(present_lastAccessTime);
+ if (present_lastAccessTime)
+ builder.append(lastAccessTime);
+
+ boolean present_indexTableName = true && (isSetIndexTableName());
+ builder.append(present_indexTableName);
+ if (present_indexTableName)
+ builder.append(indexTableName);
+
+ boolean present_sd = true && (isSetSd());
+ builder.append(present_sd);
+ if (present_sd)
+ builder.append(sd);
+
+ boolean present_parameters = true && (isSetParameters());
+ builder.append(present_parameters);
+ if (present_parameters)
+ builder.append(parameters);
+
+ boolean present_deferredRebuild = true;
+ builder.append(present_deferredRebuild);
+ if (present_deferredRebuild)
+ builder.append(deferredRebuild);
+
+ return builder.toHashCode();
}

public int compareTo(Index other) {

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/IndexAlreadyExistsException.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/IndexAlreadyExistsException.java?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/IndexAlreadyExistsException.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/IndexAlreadyExistsException.java Mon Jun 25 19:59:44 2012
@@ -5,6 +5,7 @@
*/
package org.apache.hadoop.hive.metastore.api;

+import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -209,7 +210,14 @@ public class IndexAlreadyExistsException

@Override
public int hashCode() {
- return 0;
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_message = true && (isSetMessage());
+ builder.append(present_message);
+ if (present_message)
+ builder.append(message);
+
+ return builder.toHashCode();
}

public int compareTo(IndexAlreadyExistsException other) {

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidObjectException.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidObjectException.java?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidObjectException.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidObjectException.java Mon Jun 25 19:59:44 2012
@@ -5,6 +5,7 @@
*/
package org.apache.hadoop.hive.metastore.api;

+import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -209,7 +210,14 @@ public class InvalidObjectException exte

@Override
public int hashCode() {
- return 0;
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_message = true && (isSetMessage());
+ builder.append(present_message);
+ if (present_message)
+ builder.append(message);
+
+ return builder.toHashCode();
}

public int compareTo(InvalidObjectException other) {

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidOperationException.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidOperationException.java?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidOperationException.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidOperationException.java Mon Jun 25 19:59:44 2012
@@ -5,6 +5,7 @@
*/
package org.apache.hadoop.hive.metastore.api;

+import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -209,7 +210,14 @@ public class InvalidOperationException e

@Override
public int hashCode() {
- return 0;
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_message = true && (isSetMessage());
+ builder.append(present_message);
+ if (present_message)
+ builder.append(message);
+
+ return builder.toHashCode();
}

public int compareTo(InvalidOperationException other) {

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidPartitionException.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidPartitionException.java?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidPartitionException.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidPartitionException.java Mon Jun 25 19:59:44 2012
@@ -5,6 +5,7 @@
*/
package org.apache.hadoop.hive.metastore.api;

+import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -209,7 +210,14 @@ public class InvalidPartitionException e

@Override
public int hashCode() {
- return 0;
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_message = true && (isSetMessage());
+ builder.append(present_message);
+ if (present_message)
+ builder.append(message);
+
+ return builder.toHashCode();
}

public int compareTo(InvalidPartitionException other) {

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/MetaException.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/MetaException.java?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/MetaException.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/MetaException.java Mon Jun 25 19:59:44 2012
@@ -5,6 +5,7 @@
*/
package org.apache.hadoop.hive.metastore.api;

+import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -209,7 +210,14 @@ public class MetaException extends Excep

@Override
public int hashCode() {
- return 0;
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_message = true && (isSetMessage());
+ builder.append(present_message);
+ if (present_message)
+ builder.append(message);
+
+ return builder.toHashCode();
}

public int compareTo(MetaException other) {

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchObjectException.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchObjectException.java?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchObjectException.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchObjectException.java Mon Jun 25 19:59:44 2012
@@ -5,6 +5,7 @@
*/
package org.apache.hadoop.hive.metastore.api;

+import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -209,7 +210,14 @@ public class NoSuchObjectException exten

@Override
public int hashCode() {
- return 0;
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_message = true && (isSetMessage());
+ builder.append(present_message);
+ if (present_message)
+ builder.append(message);
+
+ return builder.toHashCode();
}

public int compareTo(NoSuchObjectException other) {

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Order.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Order.java?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Order.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Order.java Mon Jun 25 19:59:44 2012
@@ -5,6 +5,7 @@
*/
package org.apache.hadoop.hive.metastore.api;

+import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -270,7 +271,19 @@ public class Order implements org.apache

@Override
public int hashCode() {
- return 0;
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_col = true && (isSetCol());
+ builder.append(present_col);
+ if (present_col)
+ builder.append(col);
+
+ boolean present_order = true;
+ builder.append(present_order);
+ if (present_order)
+ builder.append(order);
+
+ return builder.toHashCode();
}

public int compareTo(Order other) {

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java Mon Jun 25 19:59:44 2012
@@ -5,6 +5,7 @@
*/
package org.apache.hadoop.hive.metastore.api;

+import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -661,7 +662,49 @@ public class Partition implements org.ap

@Override
public int hashCode() {
- return 0;
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_values = true && (isSetValues());
+ builder.append(present_values);
+ if (present_values)
+ builder.append(values);
+
+ boolean present_dbName = true && (isSetDbName());
+ builder.append(present_dbName);
+ if (present_dbName)
+ builder.append(dbName);
+
+ boolean present_tableName = true && (isSetTableName());
+ builder.append(present_tableName);
+ if (present_tableName)
+ builder.append(tableName);
+
+ boolean present_createTime = true;
+ builder.append(present_createTime);
+ if (present_createTime)
+ builder.append(createTime);
+
+ boolean present_lastAccessTime = true;
+ builder.append(present_lastAccessTime);
+ if (present_lastAccessTime)
+ builder.append(lastAccessTime);
+
+ boolean present_sd = true && (isSetSd());
+ builder.append(present_sd);
+ if (present_sd)
+ builder.append(sd);
+
+ boolean present_parameters = true && (isSetParameters());
+ builder.append(present_parameters);
+ if (present_parameters)
+ builder.append(parameters);
+
+ boolean present_privileges = true && (isSetPrivileges());
+ builder.append(present_privileges);
+ if (present_privileges)
+ builder.append(privileges);
+
+ return builder.toHashCode();
}

public int compareTo(Partition other) {

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java Mon Jun 25 19:59:44 2012
@@ -5,6 +5,7 @@
*/
package org.apache.hadoop.hive.metastore.api;

+import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -412,7 +413,24 @@ public class PrincipalPrivilegeSet imple

@Override
public int hashCode() {
- return 0;
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_userPrivileges = true && (isSetUserPrivileges());
+ builder.append(present_userPrivileges);
+ if (present_userPrivileges)
+ builder.append(userPrivileges);
+
+ boolean present_groupPrivileges = true && (isSetGroupPrivileges());
+ builder.append(present_groupPrivileges);
+ if (present_groupPrivileges)
+ builder.append(groupPrivileges);
+
+ boolean present_rolePrivileges = true && (isSetRolePrivileges());
+ builder.append(present_rolePrivileges);
+ if (present_rolePrivileges)
+ builder.append(rolePrivileges);
+
+ return builder.toHashCode();
}

public int compareTo(PrincipalPrivilegeSet other) {

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeBag.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeBag.java?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeBag.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeBag.java Mon Jun 25 19:59:44 2012
@@ -5,6 +5,7 @@
*/
package org.apache.hadoop.hive.metastore.api;

+import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -229,7 +230,14 @@ public class PrivilegeBag implements org

@Override
public int hashCode() {
- return 0;
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_privileges = true && (isSetPrivileges());
+ builder.append(present_privileges);
+ if (present_privileges)
+ builder.append(privileges);
+
+ return builder.toHashCode();
}

public int compareTo(PrivilegeBag other) {

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeGrantInfo.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeGrantInfo.java?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeGrantInfo.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeGrantInfo.java Mon Jun 25 19:59:44 2012
@@ -5,6 +5,7 @@
*/
package org.apache.hadoop.hive.metastore.api;

+import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -456,7 +457,34 @@ public class PrivilegeGrantInfo implemen

@Override
public int hashCode() {
- return 0;
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_privilege = true && (isSetPrivilege());
+ builder.append(present_privilege);
+ if (present_privilege)
+ builder.append(privilege);
+
+ boolean present_createTime = true;
+ builder.append(present_createTime);
+ if (present_createTime)
+ builder.append(createTime);
+
+ boolean present_grantor = true && (isSetGrantor());
+ builder.append(present_grantor);
+ if (present_grantor)
+ builder.append(grantor);
+
+ boolean present_grantorType = true && (isSetGrantorType());
+ builder.append(present_grantorType);
+ if (present_grantorType)
+ builder.append(grantorType.getValue());
+
+ boolean present_grantOption = true;
+ builder.append(present_grantOption);
+ if (present_grantOption)
+ builder.append(grantOption);
+
+ return builder.toHashCode();
}

public int compareTo(PrivilegeGrantInfo other) {

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Role.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Role.java?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Role.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Role.java Mon Jun 25 19:59:44 2012
@@ -5,6 +5,7 @@
*/
package org.apache.hadoop.hive.metastore.api;

+import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -328,7 +329,24 @@ public class Role implements org.apache.

@Override
public int hashCode() {
- return 0;
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_roleName = true && (isSetRoleName());
+ builder.append(present_roleName);
+ if (present_roleName)
+ builder.append(roleName);
+
+ boolean present_createTime = true;
+ builder.append(present_createTime);
+ if (present_createTime)
+ builder.append(createTime);
+
+ boolean present_ownerName = true && (isSetOwnerName());
+ builder.append(present_ownerName);
+ if (present_ownerName)
+ builder.append(ownerName);
+
+ return builder.toHashCode();
}

public int compareTo(Role other) {

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java Mon Jun 25 19:59:44 2012
@@ -5,6 +5,7 @@
*/
package org.apache.hadoop.hive.metastore.api;

+import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -312,7 +313,19 @@ public class Schema implements org.apach

@Override
public int hashCode() {
- return 0;
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_fieldSchemas = true && (isSetFieldSchemas());
+ builder.append(present_fieldSchemas);
+ if (present_fieldSchemas)
+ builder.append(fieldSchemas);
+
+ boolean present_properties = true && (isSetProperties());
+ builder.append(present_properties);
+ if (present_properties)
+ builder.append(properties);
+
+ return builder.toHashCode();
}

public int compareTo(Schema other) {

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java Mon Jun 25 19:59:44 2012
@@ -5,6 +5,7 @@
*/
package org.apache.hadoop.hive.metastore.api;

+import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -350,7 +351,24 @@ public class SerDeInfo implements org.ap

@Override
public int hashCode() {
- return 0;
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_name = true && (isSetName());
+ builder.append(present_name);
+ if (present_name)
+ builder.append(name);
+
+ boolean present_serializationLib = true && (isSetSerializationLib());
+ builder.append(present_serializationLib);
+ if (present_serializationLib)
+ builder.append(serializationLib);
+
+ boolean present_parameters = true && (isSetParameters());
+ builder.append(present_parameters);
+ if (present_parameters)
+ builder.append(parameters);
+
+ return builder.toHashCode();
}

public int compareTo(SerDeInfo other) {

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java Mon Jun 25 19:59:44 2012
@@ -5,6 +5,7 @@
*/
package org.apache.hadoop.hive.metastore.api;

+import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -819,7 +820,59 @@ public class StorageDescriptor implement

@Override
public int hashCode() {
- return 0;
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_cols = true && (isSetCols());
+ builder.append(present_cols);
+ if (present_cols)
+ builder.append(cols);
+
+ boolean present_location = true && (isSetLocation());
+ builder.append(present_location);
+ if (present_location)
+ builder.append(location);
+
+ boolean present_inputFormat = true && (isSetInputFormat());
+ builder.append(present_inputFormat);
+ if (present_inputFormat)
+ builder.append(inputFormat);
+
+ boolean present_outputFormat = true && (isSetOutputFormat());
+ builder.append(present_outputFormat);
+ if (present_outputFormat)
+ builder.append(outputFormat);
+
+ boolean present_compressed = true;
+ builder.append(present_compressed);
+ if (present_compressed)
+ builder.append(compressed);
+
+ boolean present_numBuckets = true;
+ builder.append(present_numBuckets);
+ if (present_numBuckets)
+ builder.append(numBuckets);
+
+ boolean present_serdeInfo = true && (isSetSerdeInfo());
+ builder.append(present_serdeInfo);
+ if (present_serdeInfo)
+ builder.append(serdeInfo);
+
+ boolean present_bucketCols = true && (isSetBucketCols());
+ builder.append(present_bucketCols);
+ if (present_bucketCols)
+ builder.append(bucketCols);
+
+ boolean present_sortCols = true && (isSetSortCols());
+ builder.append(present_sortCols);
+ if (present_sortCols)
+ builder.append(sortCols);
+
+ boolean present_parameters = true && (isSetParameters());
+ builder.append(present_parameters);
+ if (present_parameters)
+ builder.append(parameters);
+
+ return builder.toHashCode();
}

public int compareTo(StorageDescriptor other) {

Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java?rev=1353720&r1=1353719&r2=1353720&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java Mon Jun 25 19:59:44 2012
@@ -5,6 +5,7 @@
*/
package org.apache.hadoop.hive.metastore.api;

+import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -951,7 +952,74 @@ public class Table implements org.apache

@Override
public int hashCode() {
- return 0;
+ HashCodeBuilder builder = new HashCodeBuilder();
+
+ boolean present_tableName = true && (isSetTableName());
+ builder.append(present_tableName);
+ if (present_tableName)
+ builder.append(tableName);
+
+ boolean present_dbName = true && (isSetDbName());
+ builder.append(present_dbName);
+ if (present_dbName)
+ builder.append(dbName);
+
+ boolean present_owner = true && (isSetOwner());
+ builder.append(present_owner);
+ if (present_owner)
+ builder.append(owner);
+
+ boolean present_createTime = true;
+ builder.append(present_createTime);
+ if (present_createTime)
+ builder.append(createTime);
+
+ boolean present_lastAccessTime = true;
+ builder.append(present_lastAccessTime);
+ if (present_lastAccessTime)
+ builder.append(lastAccessTime);
+
+ boolean present_retention = true;
+ builder.append(present_retention);
+ if (present_retention)
+ builder.append(retention);
+
+ boolean present_sd = true && (isSetSd());
+ builder.append(present_sd);
+ if (present_sd)
+ builder.append(sd);
+
+ boolean present_partitionKeys = true && (isSetPartitionKeys());
+ builder.append(present_partitionKeys);
+ if (present_partitionKeys)
+ builder.append(partitionKeys);
+
+ boolean present_parameters = true && (isSetParameters());
+ builder.append(present_parameters);
+ if (present_parameters)
+ builder.append(parameters);
+
+ boolean present_viewOriginalText = true && (isSetViewOriginalText());
+ builder.append(present_viewOriginalText);
+ if (present_viewOriginalText)
+ builder.append(viewOriginalText);
+
+ boolean present_viewExpandedText = true && (isSetViewExpandedText());
+ builder.append(present_viewExpandedText);
+ if (present_viewExpandedText)
+ builder.append(viewExpandedText);
+
+ boolean present_tableType = true && (isSetTableType());
+ builder.append(present_tableType);
+ if (present_tableType)
+ builder.append(tableType);
+
+ boolean present_privileges = true && (isSetPrivileges());
+ builder.append(present_privileges);
+ if (present_privileges)
+ builder.append(privileges);
+
+ return builder.toHashCode();
}

public int compareTo(Table other) {

Search Discussions

  • Cws at Jun 25, 2012 at 8:00 pm
    Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Type.java
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Type.java?rev=1353720&r1=1353719&r2=1353720&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Type.java (original)
    +++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Type.java Mon Jun 25 19:59:44 2012
    @@ -5,6 +5,7 @@
    */
    package org.apache.hadoop.hive.metastore.api;

    +import org.apache.commons.lang.builder.HashCodeBuilder;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    @@ -397,7 +398,29 @@ public class Type implements org.apache.

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_name = true && (isSetName());
    + builder.append(present_name);
    + if (present_name)
    + builder.append(name);
    +
    + boolean present_type1 = true && (isSetType1());
    + builder.append(present_type1);
    + if (present_type1)
    + builder.append(type1);
    +
    + boolean present_type2 = true && (isSetType2());
    + builder.append(present_type2);
    + if (present_type2)
    + builder.append(type2);
    +
    + boolean present_fields = true && (isSetFields());
    + builder.append(present_fields);
    + if (present_fields)
    + builder.append(fields);
    +
    + return builder.toHashCode();
    }

    public int compareTo(Type other) {

    Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownDBException.java
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownDBException.java?rev=1353720&r1=1353719&r2=1353720&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownDBException.java (original)
    +++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownDBException.java Mon Jun 25 19:59:44 2012
    @@ -5,6 +5,7 @@
    */
    package org.apache.hadoop.hive.metastore.api;

    +import org.apache.commons.lang.builder.HashCodeBuilder;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    @@ -209,7 +210,14 @@ public class UnknownDBException extends

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_message = true && (isSetMessage());
    + builder.append(present_message);
    + if (present_message)
    + builder.append(message);
    +
    + return builder.toHashCode();
    }

    public int compareTo(UnknownDBException other) {

    Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownPartitionException.java
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownPartitionException.java?rev=1353720&r1=1353719&r2=1353720&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownPartitionException.java (original)
    +++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownPartitionException.java Mon Jun 25 19:59:44 2012
    @@ -5,6 +5,7 @@
    */
    package org.apache.hadoop.hive.metastore.api;

    +import org.apache.commons.lang.builder.HashCodeBuilder;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    @@ -209,7 +210,14 @@ public class UnknownPartitionException e

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_message = true && (isSetMessage());
    + builder.append(present_message);
    + if (present_message)
    + builder.append(message);
    +
    + return builder.toHashCode();
    }

    public int compareTo(UnknownPartitionException other) {

    Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownTableException.java
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownTableException.java?rev=1353720&r1=1353719&r2=1353720&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownTableException.java (original)
    +++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownTableException.java Mon Jun 25 19:59:44 2012
    @@ -5,6 +5,7 @@
    */
    package org.apache.hadoop.hive.metastore.api;

    +import org.apache.commons.lang.builder.HashCodeBuilder;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    @@ -209,7 +210,14 @@ public class UnknownTableException exten

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_message = true && (isSetMessage());
    + builder.append(present_message);
    + if (present_message)
    + builder.append(message);
    +
    + return builder.toHashCode();
    }

    public int compareTo(UnknownTableException other) {

    Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Version.java
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Version.java?rev=1353720&r1=1353719&r2=1353720&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Version.java (original)
    +++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Version.java Mon Jun 25 19:59:44 2012
    @@ -5,6 +5,7 @@
    */
    package org.apache.hadoop.hive.metastore.api;

    +import org.apache.commons.lang.builder.HashCodeBuilder;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    @@ -267,7 +268,19 @@ public class Version implements org.apac

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_version = true && (isSetVersion());
    + builder.append(present_version);
    + if (present_version)
    + builder.append(version);
    +
    + boolean present_comments = true && (isSetComments());
    + builder.append(present_comments);
    + if (present_comments)
    + builder.append(comments);
    +
    + return builder.toHashCode();
    }

    public int compareTo(Version other) {

    Modified: hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Adjacency.java
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Adjacency.java?rev=1353720&r1=1353719&r2=1353720&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Adjacency.java (original)
    +++ hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Adjacency.java Mon Jun 25 19:59:44 2012
    @@ -5,6 +5,7 @@
    */
    package org.apache.hadoop.hive.ql.plan.api;

    +import org.apache.commons.lang.builder.HashCodeBuilder;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    @@ -357,7 +358,24 @@ public class Adjacency implements org.ap

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_node = true && (isSetNode());
    + builder.append(present_node);
    + if (present_node)
    + builder.append(node);
    +
    + boolean present_children = true && (isSetChildren());
    + builder.append(present_children);
    + if (present_children)
    + builder.append(children);
    +
    + boolean present_adjacencyType = true && (isSetAdjacencyType());
    + builder.append(present_adjacencyType);
    + if (present_adjacencyType)
    + builder.append(adjacencyType.getValue());
    +
    + return builder.toHashCode();
    }

    public int compareTo(Adjacency other) {

    Modified: hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Graph.java
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Graph.java?rev=1353720&r1=1353719&r2=1353720&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Graph.java (original)
    +++ hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Graph.java Mon Jun 25 19:59:44 2012
    @@ -5,6 +5,7 @@
    */
    package org.apache.hadoop.hive.ql.plan.api;

    +import org.apache.commons.lang.builder.HashCodeBuilder;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    @@ -377,7 +378,24 @@ public class Graph implements org.apache

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_nodeType = true && (isSetNodeType());
    + builder.append(present_nodeType);
    + if (present_nodeType)
    + builder.append(nodeType.getValue());
    +
    + boolean present_roots = true && (isSetRoots());
    + builder.append(present_roots);
    + if (present_roots)
    + builder.append(roots);
    +
    + boolean present_adjacencyList = true && (isSetAdjacencyList());
    + builder.append(present_adjacencyList);
    + if (present_adjacencyList)
    + builder.append(adjacencyList);
    +
    + return builder.toHashCode();
    }

    public int compareTo(Graph other) {

    Modified: hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Operator.java
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Operator.java?rev=1353720&r1=1353719&r2=1353720&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Operator.java (original)
    +++ hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Operator.java Mon Jun 25 19:59:44 2012
    @@ -5,6 +5,7 @@
    */
    package org.apache.hadoop.hive.ql.plan.api;

    +import org.apache.commons.lang.builder.HashCodeBuilder;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    @@ -564,7 +565,39 @@ public class Operator implements org.apa

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_operatorId = true && (isSetOperatorId());
    + builder.append(present_operatorId);
    + if (present_operatorId)
    + builder.append(operatorId);
    +
    + boolean present_operatorType = true && (isSetOperatorType());
    + builder.append(present_operatorType);
    + if (present_operatorType)
    + builder.append(operatorType.getValue());
    +
    + boolean present_operatorAttributes = true && (isSetOperatorAttributes());
    + builder.append(present_operatorAttributes);
    + if (present_operatorAttributes)
    + builder.append(operatorAttributes);
    +
    + boolean present_operatorCounters = true && (isSetOperatorCounters());
    + builder.append(present_operatorCounters);
    + if (present_operatorCounters)
    + builder.append(operatorCounters);
    +
    + boolean present_done = true;
    + builder.append(present_done);
    + if (present_done)
    + builder.append(done);
    +
    + boolean present_started = true;
    + builder.append(present_started);
    + if (present_started)
    + builder.append(started);
    +
    + return builder.toHashCode();
    }

    public int compareTo(Operator other) {

    Modified: hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Query.java
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Query.java?rev=1353720&r1=1353719&r2=1353720&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Query.java (original)
    +++ hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Query.java Mon Jun 25 19:59:44 2012
    @@ -5,6 +5,7 @@
    */
    package org.apache.hadoop.hive.ql.plan.api;

    +import org.apache.commons.lang.builder.HashCodeBuilder;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    @@ -688,7 +689,49 @@ public class Query implements org.apache

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_queryId = true && (isSetQueryId());
    + builder.append(present_queryId);
    + if (present_queryId)
    + builder.append(queryId);
    +
    + boolean present_queryType = true && (isSetQueryType());
    + builder.append(present_queryType);
    + if (present_queryType)
    + builder.append(queryType);
    +
    + boolean present_queryAttributes = true && (isSetQueryAttributes());
    + builder.append(present_queryAttributes);
    + if (present_queryAttributes)
    + builder.append(queryAttributes);
    +
    + boolean present_queryCounters = true && (isSetQueryCounters());
    + builder.append(present_queryCounters);
    + if (present_queryCounters)
    + builder.append(queryCounters);
    +
    + boolean present_stageGraph = true && (isSetStageGraph());
    + builder.append(present_stageGraph);
    + if (present_stageGraph)
    + builder.append(stageGraph);
    +
    + boolean present_stageList = true && (isSetStageList());
    + builder.append(present_stageList);
    + if (present_stageList)
    + builder.append(stageList);
    +
    + boolean present_done = true;
    + builder.append(present_done);
    + if (present_done)
    + builder.append(done);
    +
    + boolean present_started = true;
    + builder.append(present_started);
    + if (present_started)
    + builder.append(started);
    +
    + return builder.toHashCode();
    }

    public int compareTo(Query other) {

    Modified: hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/QueryPlan.java
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/QueryPlan.java?rev=1353720&r1=1353719&r2=1353720&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/QueryPlan.java (original)
    +++ hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/QueryPlan.java Mon Jun 25 19:59:44 2012
    @@ -5,6 +5,7 @@
    */
    package org.apache.hadoop.hive.ql.plan.api;

    +import org.apache.commons.lang.builder.HashCodeBuilder;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    @@ -348,7 +349,24 @@ public class QueryPlan implements org.ap

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_queries = true && (isSetQueries());
    + builder.append(present_queries);
    + if (present_queries)
    + builder.append(queries);
    +
    + boolean present_done = true;
    + builder.append(present_done);
    + if (present_done)
    + builder.append(done);
    +
    + boolean present_started = true;
    + builder.append(present_started);
    + if (present_started)
    + builder.append(started);
    +
    + return builder.toHashCode();
    }

    public int compareTo(QueryPlan other) {

    Modified: hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Stage.java
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Stage.java?rev=1353720&r1=1353719&r2=1353720&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Stage.java (original)
    +++ hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Stage.java Mon Jun 25 19:59:44 2012
    @@ -5,6 +5,7 @@
    */
    package org.apache.hadoop.hive.ql.plan.api;

    +import org.apache.commons.lang.builder.HashCodeBuilder;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    @@ -642,7 +643,44 @@ public class Stage implements org.apache

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_stageId = true && (isSetStageId());
    + builder.append(present_stageId);
    + if (present_stageId)
    + builder.append(stageId);
    +
    + boolean present_stageType = true && (isSetStageType());
    + builder.append(present_stageType);
    + if (present_stageType)
    + builder.append(stageType.getValue());
    +
    + boolean present_stageAttributes = true && (isSetStageAttributes());
    + builder.append(present_stageAttributes);
    + if (present_stageAttributes)
    + builder.append(stageAttributes);
    +
    + boolean present_stageCounters = true && (isSetStageCounters());
    + builder.append(present_stageCounters);
    + if (present_stageCounters)
    + builder.append(stageCounters);
    +
    + boolean present_taskList = true && (isSetTaskList());
    + builder.append(present_taskList);
    + if (present_taskList)
    + builder.append(taskList);
    +
    + boolean present_done = true;
    + builder.append(present_done);
    + if (present_done)
    + builder.append(done);
    +
    + boolean present_started = true;
    + builder.append(present_started);
    + if (present_started)
    + builder.append(started);
    +
    + return builder.toHashCode();
    }

    public int compareTo(Stage other) {

    Modified: hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Task.java
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Task.java?rev=1353720&r1=1353719&r2=1353720&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Task.java (original)
    +++ hive/trunk/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Task.java Mon Jun 25 19:59:44 2012
    @@ -5,6 +5,7 @@
    */
    package org.apache.hadoop.hive.ql.plan.api;

    +import org.apache.commons.lang.builder.HashCodeBuilder;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    @@ -696,7 +697,49 @@ public class Task implements org.apache.

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_taskId = true && (isSetTaskId());
    + builder.append(present_taskId);
    + if (present_taskId)
    + builder.append(taskId);
    +
    + boolean present_taskType = true && (isSetTaskType());
    + builder.append(present_taskType);
    + if (present_taskType)
    + builder.append(taskType.getValue());
    +
    + boolean present_taskAttributes = true && (isSetTaskAttributes());
    + builder.append(present_taskAttributes);
    + if (present_taskAttributes)
    + builder.append(taskAttributes);
    +
    + boolean present_taskCounters = true && (isSetTaskCounters());
    + builder.append(present_taskCounters);
    + if (present_taskCounters)
    + builder.append(taskCounters);
    +
    + boolean present_operatorGraph = true && (isSetOperatorGraph());
    + builder.append(present_operatorGraph);
    + if (present_operatorGraph)
    + builder.append(operatorGraph);
    +
    + boolean present_operatorList = true && (isSetOperatorList());
    + builder.append(present_operatorList);
    + if (present_operatorList)
    + builder.append(operatorList);
    +
    + boolean present_done = true;
    + builder.append(present_done);
    + if (present_done)
    + builder.append(done);
    +
    + boolean present_started = true;
    + builder.append(present_started);
    + if (present_started)
    + builder.append(started);
    +
    + return builder.toHashCode();
    }

    public int compareTo(Task other) {

    Modified: hive/trunk/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/Constants.java
    URL: http://svn.apache.org/viewvc/hive/trunk/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/Constants.java?rev=1353720&r1=1353719&r2=1353720&view=diff
    ==============================================================================
    --- hive/trunk/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/Constants.java (original)
    +++ hive/trunk/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/Constants.java Mon Jun 25 19:59:44 2012
    @@ -5,6 +5,7 @@
    */
    package org.apache.hadoop.hive.serde;

    +import org.apache.commons.lang.builder.HashCodeBuilder;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;

    Modified: hive/trunk/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveClusterStatus.java
    URL: http://svn.apache.org/viewvc/hive/trunk/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveClusterStatus.java?rev=1353720&r1=1353719&r2=1353720&view=diff
    ==============================================================================
    --- hive/trunk/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveClusterStatus.java (original)
    +++ hive/trunk/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveClusterStatus.java Mon Jun 25 19:59:44 2012
    @@ -5,6 +5,7 @@
    */
    package org.apache.hadoop.hive.service;

    +import org.apache.commons.lang.builder.HashCodeBuilder;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    @@ -514,7 +515,39 @@ public class HiveClusterStatus implement

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_taskTrackers = true;
    + builder.append(present_taskTrackers);
    + if (present_taskTrackers)
    + builder.append(taskTrackers);
    +
    + boolean present_mapTasks = true;
    + builder.append(present_mapTasks);
    + if (present_mapTasks)
    + builder.append(mapTasks);
    +
    + boolean present_reduceTasks = true;
    + builder.append(present_reduceTasks);
    + if (present_reduceTasks)
    + builder.append(reduceTasks);
    +
    + boolean present_maxMapTasks = true;
    + builder.append(present_maxMapTasks);
    + if (present_maxMapTasks)
    + builder.append(maxMapTasks);
    +
    + boolean present_maxReduceTasks = true;
    + builder.append(present_maxReduceTasks);
    + if (present_maxReduceTasks)
    + builder.append(maxReduceTasks);
    +
    + boolean present_state = true && (isSetState());
    + builder.append(present_state);
    + if (present_state)
    + builder.append(state.getValue());
    +
    + return builder.toHashCode();
    }

    public int compareTo(HiveClusterStatus other) {

    Modified: hive/trunk/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveServerException.java
    URL: http://svn.apache.org/viewvc/hive/trunk/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveServerException.java?rev=1353720&r1=1353719&r2=1353720&view=diff
    ==============================================================================
    --- hive/trunk/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveServerException.java (original)
    +++ hive/trunk/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveServerException.java Mon Jun 25 19:59:44 2012
    @@ -5,6 +5,7 @@
    */
    package org.apache.hadoop.hive.service;

    +import org.apache.commons.lang.builder.HashCodeBuilder;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    @@ -328,7 +329,24 @@ public class HiveServerException extends

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_message = true && (isSetMessage());
    + builder.append(present_message);
    + if (present_message)
    + builder.append(message);
    +
    + boolean present_errorCode = true;
    + builder.append(present_errorCode);
    + if (present_errorCode)
    + builder.append(errorCode);
    +
    + boolean present_SQLState = true && (isSetSQLState());
    + builder.append(present_SQLState);
    + if (present_SQLState)
    + builder.append(SQLState);
    +
    + return builder.toHashCode();
    }

    public int compareTo(HiveServerException other) {

    Modified: hive/trunk/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/ThriftHive.java
    URL: http://svn.apache.org/viewvc/hive/trunk/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/ThriftHive.java?rev=1353720&r1=1353719&r2=1353720&view=diff
    ==============================================================================
    --- hive/trunk/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/ThriftHive.java (original)
    +++ hive/trunk/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/ThriftHive.java Mon Jun 25 19:59:44 2012
    @@ -5,6 +5,7 @@
    */
    package org.apache.hadoop.hive.service;

    +import org.apache.commons.lang.builder.HashCodeBuilder;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    @@ -981,7 +982,14 @@ public class ThriftHive {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_query = true && (isSetQuery());
    + builder.append(present_query);
    + if (present_query)
    + builder.append(query);
    +
    + return builder.toHashCode();
    }

    public int compareTo(execute_args other) {
    @@ -1275,7 +1283,14 @@ public class ThriftHive {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_ex = true && (isSetEx());
    + builder.append(present_ex);
    + if (present_ex)
    + builder.append(ex);
    +
    + return builder.toHashCode();
    }

    public int compareTo(execute_result other) {
    @@ -1504,7 +1519,9 @@ public class ThriftHive {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + return builder.toHashCode();
    }

    public int compareTo(fetchOne_args other) {
    @@ -1827,7 +1844,19 @@ public class ThriftHive {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_ex = true && (isSetEx());
    + builder.append(present_ex);
    + if (present_ex)
    + builder.append(ex);
    +
    + return builder.toHashCode();
    }

    public int compareTo(fetchOne_result other) {
    @@ -2153,7 +2182,14 @@ public class ThriftHive {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_numRows = true;
    + builder.append(present_numRows);
    + if (present_numRows)
    + builder.append(numRows);
    +
    + return builder.toHashCode();
    }

    public int compareTo(fetchN_args other) {
    @@ -2522,7 +2558,19 @@ public class ThriftHive {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_ex = true && (isSetEx());
    + builder.append(present_ex);
    + if (present_ex)
    + builder.append(ex);
    +
    + return builder.toHashCode();
    }

    public int compareTo(fetchN_result other) {
    @@ -2797,7 +2845,9 @@ public class ThriftHive {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + return builder.toHashCode();
    }

    public int compareTo(fetchAll_args other) {
    @@ -3140,7 +3190,19 @@ public class ThriftHive {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_ex = true && (isSetEx());
    + builder.append(present_ex);
    + if (present_ex)
    + builder.append(ex);
    +
    + return builder.toHashCode();
    }

    public int compareTo(fetchAll_result other) {
    @@ -3415,7 +3477,9 @@ public class ThriftHive {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + return builder.toHashCode();
    }

    public int compareTo(getSchema_args other) {
    @@ -3738,7 +3802,19 @@ public class ThriftHive {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_ex = true && (isSetEx());
    + builder.append(present_ex);
    + if (present_ex)
    + builder.append(ex);
    +
    + return builder.toHashCode();
    }

    public int compareTo(getSchema_result other) {
    @@ -3997,7 +4073,9 @@ public class ThriftHive {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + return builder.toHashCode();
    }

    public int compareTo(getThriftSchema_args other) {
    @@ -4320,7 +4398,19 @@ public class ThriftHive {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_ex = true && (isSetEx());
    + builder.append(present_ex);
    + if (present_ex)
    + builder.append(ex);
    +
    + return builder.toHashCode();
    }

    public int compareTo(getThriftSchema_result other) {
    @@ -4579,7 +4669,9 @@ public class ThriftHive {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + return builder.toHashCode();
    }

    public int compareTo(getClusterStatus_args other) {
    @@ -4902,7 +4994,19 @@ public class ThriftHive {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_ex = true && (isSetEx());
    + builder.append(present_ex);
    + if (present_ex)
    + builder.append(ex);
    +
    + return builder.toHashCode();
    }

    public int compareTo(getClusterStatus_result other) {
    @@ -5161,7 +5265,9 @@ public class ThriftHive {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + return builder.toHashCode();
    }

    public int compareTo(getQueryPlan_args other) {
    @@ -5484,7 +5590,19 @@ public class ThriftHive {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_ex = true && (isSetEx());
    + builder.append(present_ex);
    + if (present_ex)
    + builder.append(ex);
    +
    + return builder.toHashCode();
    }

    public int compareTo(getQueryPlan_result other) {
    @@ -5743,7 +5861,9 @@ public class ThriftHive {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + return builder.toHashCode();
    }

    public int compareTo(clean_args other) {
    @@ -5943,7 +6063,9 @@ public class ThriftHive {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + return builder.toHashCode();
    }

    public int compareTo(clean_result other) {
  • Cws at Jun 25, 2012 at 8:00 pm
    Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java?rev=1353720&r1=1353719&r2=1353720&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java (original)
    +++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java Mon Jun 25 19:59:44 2012
    @@ -5,6 +5,7 @@
    */
    package org.apache.hadoop.hive.metastore.api;

    +import org.apache.commons.lang.builder.HashCodeBuilder;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    @@ -6643,7 +6644,14 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_database = true && (isSetDatabase());
    + builder.append(present_database);
    + if (present_database)
    + builder.append(database);
    +
    + return builder.toHashCode();
    }

    public int compareTo(create_database_args other) {
    @@ -7054,7 +7062,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + boolean present_o3 = true && (isSetO3());
    + builder.append(present_o3);
    + if (present_o3)
    + builder.append(o3);
    +
    + return builder.toHashCode();
    }

    public int compareTo(create_database_result other) {
    @@ -7408,7 +7433,14 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_name = true && (isSetName());
    + builder.append(present_name);
    + if (present_name)
    + builder.append(name);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_database_args other) {
    @@ -7818,7 +7850,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_database_result other) {
    @@ -8291,7 +8340,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_name = true && (isSetName());
    + builder.append(present_name);
    + if (present_name)
    + builder.append(name);
    +
    + boolean present_deleteData = true;
    + builder.append(present_deleteData);
    + if (present_deleteData)
    + builder.append(deleteData);
    +
    + boolean present_cascade = true;
    + builder.append(present_cascade);
    + if (present_cascade)
    + builder.append(cascade);
    +
    + return builder.toHashCode();
    }

    public int compareTo(drop_database_args other) {
    @@ -8753,7 +8819,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + boolean present_o3 = true && (isSetO3());
    + builder.append(present_o3);
    + if (present_o3)
    + builder.append(o3);
    +
    + return builder.toHashCode();
    }

    public int compareTo(drop_database_result other) {
    @@ -9107,7 +9190,14 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_pattern = true && (isSetPattern());
    + builder.append(present_pattern);
    + if (present_pattern)
    + builder.append(pattern);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_databases_args other) {
    @@ -9479,7 +9569,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_databases_result other) {
    @@ -9754,7 +9856,9 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_all_databases_args other) {
    @@ -10097,7 +10201,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_all_databases_result other) {
    @@ -10495,7 +10611,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_dbname = true && (isSetDbname());
    + builder.append(present_dbname);
    + if (present_dbname)
    + builder.append(dbname);
    +
    + boolean present_db = true && (isSetDb());
    + builder.append(present_db);
    + if (present_db)
    + builder.append(db);
    +
    + return builder.toHashCode();
    }

    public int compareTo(alter_database_args other) {
    @@ -10878,7 +11006,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(alter_database_result other) {
    @@ -11202,7 +11342,14 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_name = true && (isSetName());
    + builder.append(present_name);
    + if (present_name)
    + builder.append(name);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_type_args other) {
    @@ -11612,7 +11759,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_type_result other) {
    @@ -11966,7 +12130,14 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_type = true && (isSetType());
    + builder.append(present_type);
    + if (present_type)
    + builder.append(type);
    +
    + return builder.toHashCode();
    }

    public int compareTo(create_type_args other) {
    @@ -12438,7 +12609,29 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true;
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + boolean present_o3 = true && (isSetO3());
    + builder.append(present_o3);
    + if (present_o3)
    + builder.append(o3);
    +
    + return builder.toHashCode();
    }

    public int compareTo(create_type_result other) {
    @@ -12621,6 +12814,8 @@ public class ThriftHiveMetastore {

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    try {
    + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
    + __isset_bit_vector = new BitSet(1);
    read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    } catch (org.apache.thrift.TException te) {
    throw new java.io.IOException(te);
    @@ -12818,7 +13013,14 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_type = true && (isSetType());
    + builder.append(present_type);
    + if (present_type)
    + builder.append(type);
    +
    + return builder.toHashCode();
    }

    public int compareTo(drop_type_args other) {
    @@ -13231,7 +13433,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true;
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(drop_type_result other) {
    @@ -13384,6 +13603,8 @@ public class ThriftHiveMetastore {

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    try {
    + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
    + __isset_bit_vector = new BitSet(1);
    read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    } catch (org.apache.thrift.TException te) {
    throw new java.io.IOException(te);
    @@ -13581,7 +13802,14 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_name = true && (isSetName());
    + builder.append(present_name);
    + if (present_name)
    + builder.append(name);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_type_all_args other) {
    @@ -13958,7 +14186,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_type_all_result other) {
    @@ -14360,7 +14600,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_table_name = true && (isSetTable_name());
    + builder.append(present_table_name);
    + if (present_table_name)
    + builder.append(table_name);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_fields_args other) {
    @@ -14878,7 +15130,29 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + boolean present_o3 = true && (isSetO3());
    + builder.append(present_o3);
    + if (present_o3)
    + builder.append(o3);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_fields_result other) {
    @@ -15337,7 +15611,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_table_name = true && (isSetTable_name());
    + builder.append(present_table_name);
    + if (present_table_name)
    + builder.append(table_name);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_schema_args other) {
    @@ -15855,7 +16141,29 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + boolean present_o3 = true && (isSetO3());
    + builder.append(present_o3);
    + if (present_o3)
    + builder.append(o3);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_schema_result other) {
    @@ -16256,7 +16564,14 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_tbl = true && (isSetTbl());
    + builder.append(present_tbl);
    + if (present_tbl)
    + builder.append(tbl);
    +
    + return builder.toHashCode();
    }

    public int compareTo(create_table_args other) {
    @@ -16725,7 +17040,29 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + boolean present_o3 = true && (isSetO3());
    + builder.append(present_o3);
    + if (present_o3)
    + builder.append(o3);
    +
    + boolean present_o4 = true && (isSetO4());
    + builder.append(present_o4);
    + if (present_o4)
    + builder.append(o4);
    +
    + return builder.toHashCode();
    }

    public int compareTo(create_table_result other) {
    @@ -17167,7 +17504,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_tbl = true && (isSetTbl());
    + builder.append(present_tbl);
    + if (present_tbl)
    + builder.append(tbl);
    +
    + boolean present_environment_context = true && (isSetEnvironment_context());
    + builder.append(present_environment_context);
    + if (present_environment_context)
    + builder.append(environment_context);
    +
    + return builder.toHashCode();
    }

    public int compareTo(create_table_with_environment_context_args other) {
    @@ -17667,7 +18016,29 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + boolean present_o3 = true && (isSetO3());
    + builder.append(present_o3);
    + if (present_o3)
    + builder.append(o3);
    +
    + boolean present_o4 = true && (isSetO4());
    + builder.append(present_o4);
    + if (present_o4)
    + builder.append(o4);
    +
    + return builder.toHashCode();
    }

    public int compareTo(create_table_with_environment_context_result other) {
    @@ -18170,7 +18541,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_dbname = true && (isSetDbname());
    + builder.append(present_dbname);
    + if (present_dbname)
    + builder.append(dbname);
    +
    + boolean present_name = true && (isSetName());
    + builder.append(present_name);
    + if (present_name)
    + builder.append(name);
    +
    + boolean present_deleteData = true;
    + builder.append(present_deleteData);
    + if (present_deleteData)
    + builder.append(deleteData);
    +
    + return builder.toHashCode();
    }

    public int compareTo(drop_table_args other) {
    @@ -18579,7 +18967,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o3 = true && (isSetO3());
    + builder.append(present_o3);
    + if (present_o3)
    + builder.append(o3);
    +
    + return builder.toHashCode();
    }

    public int compareTo(drop_table_result other) {
    @@ -18961,7 +19361,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_pattern = true && (isSetPattern());
    + builder.append(present_pattern);
    + if (present_pattern)
    + builder.append(pattern);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_tables_args other) {
    @@ -19363,7 +19775,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_tables_result other) {
    @@ -19703,7 +20127,14 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_all_tables_args other) {
    @@ -20075,7 +20506,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_all_tables_result other) {
    @@ -20473,7 +20916,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_dbname = true && (isSetDbname());
    + builder.append(present_dbname);
    + if (present_dbname)
    + builder.append(dbname);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_table_args other) {
    @@ -20913,7 +21368,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_table_result other) {
    @@ -21345,7 +21817,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_dbname = true && (isSetDbname());
    + builder.append(present_dbname);
    + if (present_dbname)
    + builder.append(dbname);
    +
    + boolean present_tbl_names = true && (isSetTbl_names());
    + builder.append(present_tbl_names);
    + if (present_tbl_names)
    + builder.append(tbl_names);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_table_objects_by_name_args other) {
    @@ -21880,7 +22364,29 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + boolean present_o3 = true && (isSetO3());
    + builder.append(present_o3);
    + if (present_o3)
    + builder.append(o3);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_table_objects_by_name_result other) {
    @@ -22402,7 +22908,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_dbname = true && (isSetDbname());
    + builder.append(present_dbname);
    + if (present_dbname)
    + builder.append(dbname);
    +
    + boolean present_filter = true && (isSetFilter());
    + builder.append(present_filter);
    + if (present_filter)
    + builder.append(filter);
    +
    + boolean present_max_tables = true;
    + builder.append(present_max_tables);
    + if (present_max_tables)
    + builder.append(max_tables);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_table_names_by_filter_args other) {
    @@ -22947,7 +23470,29 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + boolean present_o3 = true && (isSetO3());
    + builder.append(present_o3);
    + if (present_o3)
    + builder.append(o3);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_table_names_by_filter_result other) {
    @@ -23463,7 +24008,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_dbname = true && (isSetDbname());
    + builder.append(present_dbname);
    + if (present_dbname)
    + builder.append(dbname);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_new_tbl = true && (isSetNew_tbl());
    + builder.append(present_new_tbl);
    + if (present_new_tbl)
    + builder.append(new_tbl);
    +
    + return builder.toHashCode();
    }

    public int compareTo(alter_table_args other) {
    @@ -23876,7 +24438,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(alter_table_result other) {
    @@ -24374,7 +24948,29 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_dbname = true && (isSetDbname());
    + builder.append(present_dbname);
    + if (present_dbname)
    + builder.append(dbname);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_new_tbl = true && (isSetNew_tbl());
    + builder.append(present_new_tbl);
    + if (present_new_tbl)
    + builder.append(new_tbl);
    +
    + boolean present_environment_context = true && (isSetEnvironment_context());
    + builder.append(present_environment_context);
    + if (present_environment_context)
    + builder.append(environment_context);
    +
    + return builder.toHashCode();
    }

    public int compareTo(alter_table_with_environment_context_args other) {
    @@ -24818,7 +25414,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(alter_table_with_environment_context_result other) {
    @@ -25142,7 +25750,14 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_new_part = true && (isSetNew_part());
    + builder.append(present_new_part);
    + if (present_new_part)
    + builder.append(new_part);
    +
    + return builder.toHashCode();
    }

    public int compareTo(add_partition_args other) {
    @@ -25611,7 +26226,29 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + boolean present_o3 = true && (isSetO3());
    + builder.append(present_o3);
    + if (present_o3)
    + builder.append(o3);
    +
    + return builder.toHashCode();
    }

    public int compareTo(add_partition_result other) {
    @@ -26053,7 +26690,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_new_part = true && (isSetNew_part());
    + builder.append(present_new_part);
    + if (present_new_part)
    + builder.append(new_part);
    +
    + boolean present_environment_context = true && (isSetEnvironment_context());
    + builder.append(present_environment_context);
    + if (present_environment_context)
    + builder.append(environment_context);
    +
    + return builder.toHashCode();
    }

    public int compareTo(add_partition_with_environment_context_args other) {
    @@ -26553,7 +27202,29 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + boolean present_o3 = true && (isSetO3());
    + builder.append(present_o3);
    + if (present_o3)
    + builder.append(o3);
    +
    + return builder.toHashCode();
    }

    public int compareTo(add_partition_with_environment_context_result other) {
    @@ -26957,7 +27628,14 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_new_parts = true && (isSetNew_parts());
    + builder.append(present_new_parts);
    + if (present_new_parts)
    + builder.append(new_parts);
    +
    + return builder.toHashCode();
    }

    public int compareTo(add_partitions_args other) {
    @@ -27446,7 +28124,29 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true;
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + boolean present_o3 = true && (isSetO3());
    + builder.append(present_o3);
    + if (present_o3)
    + builder.append(o3);
    +
    + return builder.toHashCode();
    }

    public int compareTo(add_partitions_result other) {
    @@ -27629,6 +28329,8 @@ public class ThriftHiveMetastore {

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    try {
    + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
    + __isset_bit_vector = new BitSet(1);
    read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    } catch (org.apache.thrift.TException te) {
    throw new java.io.IOException(te);
    @@ -27962,7 +28664,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_part_vals = true && (isSetPart_vals());
    + builder.append(present_part_vals);
    + if (present_part_vals)
    + builder.append(part_vals);
    +
    + return builder.toHashCode();
    }

    public int compareTo(append_partition_args other) {
    @@ -28507,7 +29226,29 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + boolean present_o3 = true && (isSetO3());
    + builder.append(present_o3);
    + if (present_o3)
    + builder.append(o3);
    +
    + return builder.toHashCode();
    }

    public int compareTo(append_partition_result other) {
    @@ -29007,7 +29748,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_part_name = true && (isSetPart_name());
    + builder.append(present_part_name);
    + if (present_part_name)
    + builder.append(part_name);
    +
    + return builder.toHashCode();
    }

    public int compareTo(append_partition_by_name_args other) {
    @@ -29535,7 +30293,29 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + boolean present_o3 = true && (isSetO3());
    + builder.append(present_o3);
    + if (present_o3)
    + builder.append(o3);
    +
    + return builder.toHashCode();
    }

    public int compareTo(append_partition_by_name_result other) {
    @@ -30116,7 +30896,29 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_part_vals = true && (isSetPart_vals());
    + builder.append(present_part_vals);
    + if (present_part_vals)
    + builder.append(part_vals);
    +
    + boolean present_deleteData = true;
    + builder.append(present_deleteData);
    + if (present_deleteData)
    + builder.append(deleteData);
    +
    + return builder.toHashCode();
    }

    public int compareTo(drop_partition_args other) {
    @@ -30633,7 +31435,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true;
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(drop_partition_result other) {
    @@ -30786,6 +31605,8 @@ public class ThriftHiveMetastore {

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    try {
    + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
    + __isset_bit_vector = new BitSet(1);
    read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    } catch (org.apache.thrift.TException te) {
    throw new java.io.IOException(te);
    @@ -31160,7 +31981,29 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_part_name = true && (isSetPart_name());
    + builder.append(present_part_name);
    + if (present_part_name)
    + builder.append(part_name);
    +
    + boolean present_deleteData = true;
    + builder.append(present_deleteData);
    + if (present_deleteData)
    + builder.append(deleteData);
    +
    + return builder.toHashCode();
    }

    public int compareTo(drop_partition_by_name_args other) {
    @@ -31660,7 +32503,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true;
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(drop_partition_by_name_result other) {
    @@ -31813,6 +32673,8 @@ public class ThriftHiveMetastore {

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    try {
    + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
    + __isset_bit_vector = new BitSet(1);
    read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    } catch (org.apache.thrift.TException te) {
    throw new java.io.IOException(te);
    @@ -32146,7 +33008,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_part_vals = true && (isSetPart_vals());
    + builder.append(present_part_vals);
    + if (present_part_vals)
    + builder.append(part_vals);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_partition_args other) {
    @@ -32633,7 +33512,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_partition_result other) {
    @@ -33259,7 +34155,34 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_part_vals = true && (isSetPart_vals());
    + builder.append(present_part_vals);
    + if (present_part_vals)
    + builder.append(part_vals);
    +
    + boolean present_user_name = true && (isSetUser_name());
    + builder.append(present_user_name);
    + if (present_user_name)
    + builder.append(user_name);
    +
    + boolean present_group_names = true && (isSetGroup_names());
    + builder.append(present_group_names);
    + if (present_group_names)
    + builder.append(group_names);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_partition_with_auth_args other) {
    @@ -33823,7 +34746,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_partition_with_auth_result other) {
    @@ -34293,7 +35233,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_part_name = true && (isSetPart_name());
    + builder.append(present_part_name);
    + if (present_part_name)
    + builder.append(part_name);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_partition_by_name_args other) {
    @@ -34763,7 +35720,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_partition_by_name_result other) {
    @@ -35238,7 +36212,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_max_parts = true;
    + builder.append(present_max_parts);
    + if (present_max_parts)
    + builder.append(max_parts);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_partitions_args other) {
    @@ -35725,7 +36716,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_partitions_result other) {
    @@ -36353,7 +37361,34 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_max_parts = true;
    + builder.append(present_max_parts);
    + if (present_max_parts)
    + builder.append(max_parts);
    +
    + boolean present_user_name = true && (isSetUser_name());
    + builder.append(present_user_name);
    + if (present_user_name)
    + builder.append(user_name);
    +
    + boolean present_group_names = true && (isSetGroup_names());
    + builder.append(present_group_names);
    + if (present_group_names)
    + builder.append(group_names);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_partitions_with_auth_args other) {
    @@ -36917,7 +37952,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_partitions_with_auth_result other) {
    @@ -37409,7 +38461,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_max_parts = true;
    + builder.append(present_max_parts);
    + if (present_max_parts)
    + builder.append(max_parts);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_partition_names_args other) {
    @@ -37838,7 +38907,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_partition_names_result other) {
    @@ -38377,7 +39458,29 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_part_vals = true && (isSetPart_vals());
    + builder.append(present_part_vals);
    + if (present_part_vals)
    + builder.append(part_vals);
    +
    + boolean present_max_parts = true;
    + builder.append(present_max_parts);
    + if (present_max_parts)
    + builder.append(max_parts);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_partitions_ps_args other) {
    @@ -38911,7 +40014,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_partitions_ps_result other) {
    @@ -39617,7 +40737,39 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_part_vals = true && (isSetPart_vals());
    + builder.append(present_part_vals);
    + if (present_part_vals)
    + builder.append(part_vals);
    +
    + boolean present_max_parts = true;
    + builder.append(present_max_parts);
    + if (present_max_parts)
    + builder.append(max_parts);
    +
    + boolean present_user_name = true && (isSetUser_name());
    + builder.append(present_user_name);
    + if (present_user_name)
    + builder.append(user_name);
    +
    + boolean present_group_names = true && (isSetGroup_names());
    + builder.append(present_group_names);
    + if (present_group_names)
    + builder.append(group_names);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_partitions_ps_with_auth_args other) {
    @@ -40228,7 +41380,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_partitions_ps_with_auth_result other) {
    @@ -40798,7 +41967,29 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_part_vals = true && (isSetPart_vals());
    + builder.append(present_part_vals);
    + if (present_part_vals)
    + builder.append(part_vals);
    +
    + boolean present_max_parts = true;
    + builder.append(present_max_parts);
    + if (present_max_parts)
    + builder.append(max_parts);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_partition_names_ps_args other) {
    @@ -41332,7 +42523,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_partition_names_ps_result other) {
    @@ -41881,7 +43089,29 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_filter = true && (isSetFilter());
    + builder.append(present_filter);
    + if (present_filter)
    + builder.append(filter);
    +
    + boolean present_max_parts = true;
    + builder.append(present_max_parts);
    + if (present_max_parts)
    + builder.append(max_parts);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_partitions_by_filter_args other) {
    @@ -42398,7 +43628,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_partitions_by_filter_result other) {
    @@ -42905,7 +44152,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_names = true && (isSetNames());
    + builder.append(present_names);
    + if (present_names)
    + builder.append(names);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_partitions_by_names_args other) {
    @@ -43412,7 +44676,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_partitions_by_names_result other) {
    @@ -43899,7 +45180,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_new_part = true && (isSetNew_part());
    + builder.append(present_new_part);
    + if (present_new_part)
    + builder.append(new_part);
    +
    + return builder.toHashCode();
    }

    public int compareTo(alter_partition_args other) {
    @@ -44312,7 +45610,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(alter_partition_result other) {
    @@ -44810,7 +46120,29 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_new_part = true && (isSetNew_part());
    + builder.append(present_new_part);
    + if (present_new_part)
    + builder.append(new_part);
    +
    + boolean present_environment_context = true && (isSetEnvironment_context());
    + builder.append(present_environment_context);
    + if (present_environment_context)
    + builder.append(environment_context);
    +
    + return builder.toHashCode();
    }

    public int compareTo(alter_partition_with_environment_context_args other) {
    @@ -45254,7 +46586,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(alter_partition_with_environment_context_result other) {
    @@ -45772,7 +47116,29 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_part_vals = true && (isSetPart_vals());
    + builder.append(present_part_vals);
    + if (present_part_vals)
    + builder.append(part_vals);
    +
    + boolean present_new_part = true && (isSetNew_part());
    + builder.append(present_new_part);
    + if (present_new_part)
    + builder.append(new_part);
    +
    + return builder.toHashCode();
    }

    public int compareTo(rename_partition_args other) {
    @@ -46232,7 +47598,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(rename_partition_result other) {
    @@ -46614,7 +47992,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_name = true && (isSetName());
    + builder.append(present_name);
    + if (present_name)
    + builder.append(name);
    +
    + boolean present_defaultValue = true && (isSetDefaultValue());
    + builder.append(present_defaultValue);
    + if (present_defaultValue)
    + builder.append(defaultValue);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_config_value_args other) {
    @@ -46996,7 +48386,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_config_value_result other) {
    @@ -47319,7 +48721,14 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_part_name = true && (isSetPart_name());
    + builder.append(present_part_name);
    + if (present_part_name)
    + builder.append(part_name);
    +
    + return builder.toHashCode();
    }

    public int compareTo(partition_name_to_vals_args other) {
    @@ -47691,7 +49100,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + return builder.toHashCode();
    }

    public int compareTo(partition_name_to_vals_result other) {
    @@ -48031,7 +49452,14 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_part_name = true && (isSetPart_name());
    + builder.append(present_part_name);
    + if (present_part_name)
    + builder.append(part_name);
    +
    + return builder.toHashCode();
    }

    public int compareTo(partition_name_to_spec_args other) {
    @@ -48408,7 +49836,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + return builder.toHashCode();
    }

    public int compareTo(partition_name_to_spec_result other) {
    @@ -48962,7 +50402,29 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_part_vals = true && (isSetPart_vals());
    + builder.append(present_part_vals);
    + if (present_part_vals)
    + builder.append(part_vals);
    +
    + boolean present_eventType = true && (isSetEventType());
    + builder.append(present_eventType);
    + if (present_eventType)
    + builder.append(eventType.getValue());
    +
    + return builder.toHashCode();
    }

    public int compareTo(markPartitionForEvent_args other) {
    @@ -49656,7 +51118,39 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + boolean present_o3 = true && (isSetO3());
    + builder.append(present_o3);
    + if (present_o3)
    + builder.append(o3);
    +
    + boolean present_o4 = true && (isSetO4());
    + builder.append(present_o4);
    + if (present_o4)
    + builder.append(o4);
    +
    + boolean present_o5 = true && (isSetO5());
    + builder.append(present_o5);
    + if (present_o5)
    + builder.append(o5);
    +
    + boolean present_o6 = true && (isSetO6());
    + builder.append(present_o6);
    + if (present_o6)
    + builder.append(o6);
    +
    + return builder.toHashCode();
    }

    public int compareTo(markPartitionForEvent_result other) {
    @@ -50311,7 +51805,29 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_part_vals = true && (isSetPart_vals());
    + builder.append(present_part_vals);
    + if (present_part_vals)
    + builder.append(part_vals);
    +
    + boolean present_eventType = true && (isSetEventType());
    + builder.append(present_eventType);
    + if (present_eventType)
    + builder.append(eventType.getValue());
    +
    + return builder.toHashCode();
    }

    public int compareTo(isPartitionMarkedForEvent_args other) {
    @@ -51066,7 +52582,44 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true;
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + boolean present_o3 = true && (isSetO3());
    + builder.append(present_o3);
    + if (present_o3)
    + builder.append(o3);
    +
    + boolean present_o4 = true && (isSetO4());
    + builder.append(present_o4);
    + if (present_o4)
    + builder.append(o4);
    +
    + boolean present_o5 = true && (isSetO5());
    + builder.append(present_o5);
    + if (present_o5)
    + builder.append(o5);
    +
    + boolean present_o6 = true && (isSetO6());
    + builder.append(present_o6);
    + if (present_o6)
    + builder.append(o6);
    +
    + return builder.toHashCode();
    }

    public int compareTo(isPartitionMarkedForEvent_result other) {
    @@ -51339,6 +52892,8 @@ public class ThriftHiveMetastore {

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    try {
    + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
    + __isset_bit_vector = new BitSet(1);
    read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    } catch (org.apache.thrift.TException te) {
    throw new java.io.IOException(te);
    @@ -51594,7 +53149,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_new_index = true && (isSetNew_index());
    + builder.append(present_new_index);
    + if (present_new_index)
    + builder.append(new_index);
    +
    + boolean present_index_table = true && (isSetIndex_table());
    + builder.append(present_index_table);
    + if (present_index_table)
    + builder.append(index_table);
    +
    + return builder.toHashCode();
    }

    public int compareTo(add_index_args other) {
    @@ -52094,7 +53661,29 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + boolean present_o3 = true && (isSetO3());
    + builder.append(present_o3);
    + if (present_o3)
    + builder.append(o3);
    +
    + return builder.toHashCode();
    }

    public int compareTo(add_index_result other) {
    @@ -52652,7 +54241,29 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_dbname = true && (isSetDbname());
    + builder.append(present_dbname);
    + if (present_dbname)
    + builder.append(dbname);
    +
    + boolean present_base_tbl_name = true && (isSetBase_tbl_name());
    + builder.append(present_base_tbl_name);
    + if (present_base_tbl_name)
    + builder.append(base_tbl_name);
    +
    + boolean present_idx_name = true && (isSetIdx_name());
    + builder.append(present_idx_name);
    + if (present_idx_name)
    + builder.append(idx_name);
    +
    + boolean present_new_idx = true && (isSetNew_idx());
    + builder.append(present_new_idx);
    + if (present_new_idx)
    + builder.append(new_idx);
    +
    + return builder.toHashCode();
    }

    public int compareTo(alter_index_args other) {
    @@ -53095,7 +54706,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(alter_index_result other) {
    @@ -53596,7 +55219,29 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_index_name = true && (isSetIndex_name());
    + builder.append(present_index_name);
    + if (present_index_name)
    + builder.append(index_name);
    +
    + boolean present_deleteData = true;
    + builder.append(present_deleteData);
    + if (present_deleteData)
    + builder.append(deleteData);
    +
    + return builder.toHashCode();
    }

    public int compareTo(drop_index_by_name_args other) {
    @@ -54096,7 +55741,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true;
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(drop_index_by_name_result other) {
    @@ -54249,6 +55911,8 @@ public class ThriftHiveMetastore {

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    try {
    + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
    + __isset_bit_vector = new BitSet(1);
    read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    } catch (org.apache.thrift.TException te) {
    throw new java.io.IOException(te);
    @@ -54562,7 +56226,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_index_name = true && (isSetIndex_name());
    + builder.append(present_index_name);
    + if (present_index_name)
    + builder.append(index_name);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_index_by_name_args other) {
    @@ -55032,7 +56713,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_index_by_name_result other) {
    @@ -55507,7 +57205,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_max_indexes = true;
    + builder.append(present_max_indexes);
    + if (present_max_indexes)
    + builder.append(max_indexes);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_indexes_args other) {
    @@ -55994,7 +57709,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_indexes_result other) {
    @@ -56486,7 +58218,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_db_name = true && (isSetDb_name());
    + builder.append(present_db_name);
    + if (present_db_name)
    + builder.append(db_name);
    +
    + boolean present_tbl_name = true && (isSetTbl_name());
    + builder.append(present_tbl_name);
    + if (present_tbl_name)
    + builder.append(tbl_name);
    +
    + boolean present_max_indexes = true;
    + builder.append(present_max_indexes);
    + if (present_max_indexes)
    + builder.append(max_indexes);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_index_names_args other) {
    @@ -56915,7 +58664,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o2 = true && (isSetO2());
    + builder.append(present_o2);
    + if (present_o2)
    + builder.append(o2);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_index_names_result other) {
    @@ -57255,7 +59016,14 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_role = true && (isSetRole());
    + builder.append(present_role);
    + if (present_role)
    + builder.append(role);
    +
    + return builder.toHashCode();
    }

    public int compareTo(create_role_args other) {
    @@ -57611,7 +59379,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true;
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + return builder.toHashCode();
    }

    public int compareTo(create_role_result other) {
    @@ -57734,6 +59514,8 @@ public class ThriftHiveMetastore {

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    try {
    + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
    + __isset_bit_vector = new BitSet(1);
    read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    } catch (org.apache.thrift.TException te) {
    throw new java.io.IOException(te);
    @@ -57931,7 +59713,14 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_role_name = true && (isSetRole_name());
    + builder.append(present_role_name);
    + if (present_role_name)
    + builder.append(role_name);
    +
    + return builder.toHashCode();
    }

    public int compareTo(drop_role_args other) {
    @@ -58286,7 +60075,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true;
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + return builder.toHashCode();
    }

    public int compareTo(drop_role_result other) {
    @@ -58409,6 +60210,8 @@ public class ThriftHiveMetastore {

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    try {
    + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
    + __isset_bit_vector = new BitSet(1);
    read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    } catch (org.apache.thrift.TException te) {
    throw new java.io.IOException(te);
    @@ -58541,7 +60344,9 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_role_names_args other) {
    @@ -58884,7 +60689,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true && (isSetSuccess());
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + return builder.toHashCode();
    }

    public int compareTo(get_role_names_result other) {
    @@ -59541,7 +61358,39 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_role_name = true && (isSetRole_name());
    + builder.append(present_role_name);
    + if (present_role_name)
    + builder.append(role_name);
    +
    + boolean present_principal_name = true && (isSetPrincipal_name());
    + builder.append(present_principal_name);
    + if (present_principal_name)
    + builder.append(principal_name);
    +
    + boolean present_principal_type = true && (isSetPrincipal_type());
    + builder.append(present_principal_type);
    + if (present_principal_type)
    + builder.append(principal_type.getValue());
    +
    + boolean present_grantor = true && (isSetGrantor());
    + builder.append(present_grantor);
    + if (present_grantor)
    + builder.append(grantor);
    +
    + boolean present_grantorType = true && (isSetGrantorType());
    + builder.append(present_grantorType);
    + if (present_grantorType)
    + builder.append(grantorType.getValue());
    +
    + boolean present_grant_option = true;
    + builder.append(present_grant_option);
    + if (present_grant_option)
    + builder.append(grant_option);
    +
    + return builder.toHashCode();
    }

    public int compareTo(grant_role_args other) {
    @@ -60043,7 +61892,19 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_success = true;
    + builder.append(present_success);
    + if (present_success)
    + builder.append(success);
    +
    + boolean present_o1 = true && (isSetO1());
    + builder.append(present_o1);
    + if (present_o1)
    + builder.append(o1);
    +
    + return builder.toHashCode();
    }

    public int compareTo(grant_role_result other) {
    @@ -60166,6 +62027,8 @@ public class ThriftHiveMetastore {

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    try {
    + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
    + __isset_bit_vector = new BitSet(1);
    read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    } catch (org.apache.thrift.TException te) {
    throw new java.io.IOException(te);
    @@ -60491,7 +62354,24 @@ public class ThriftHiveMetastore {

    @Override
    public int hashCode() {
    - return 0;
    + HashCodeBuilder builder = new HashCodeBuilder();
    +
    + boolean present_role_name = true && (isSetRole_name());
    + builder.append(present_role_name);
    + if (present_role_name)
    + builder.append(role_name);
    +
    + boolean present_principal_name = true && (isSetPrincipal_name());
    + builder.append(present_principal_name);
    + if (present_principal_name)
    + builder.append(principal_name);
    +

    [... 430 lines stripped ...]

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommits @
categorieshive, hadoop
postedJun 25, '12 at 8:00p
activeJun 25, '12 at 8:00p
posts3
users1
websitehive.apache.org

1 user in discussion

Cws: 3 posts

People

Translate

site design / logo © 2021 Grokbase