You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by su...@apache.org on 2015/07/17 21:53:27 UTC
[35/48] hive git commit: HIVE-9152 - Dynamic Partition Pruning [Spark
Branch] (Chao Sun, reviewed by Xuefu Zhang and Chengxiang Li)
http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RolePrincipalGrant.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RolePrincipalGrant.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RolePrincipalGrant.java
index 8993268..c23a265 100644
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RolePrincipalGrant.java
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RolePrincipalGrant.java
@@ -1,12 +1,11 @@
/**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.2)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.hadoop.hive.metastore.api;
-import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
+import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public class RolePrincipalGrant implements org.apache.thrift.TBase<RolePrincipalGrant, RolePrincipalGrant._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
+public class RolePrincipalGrant implements org.apache.thrift.TBase<RolePrincipalGrant, RolePrincipalGrant._Fields>, java.io.Serializable, Cloneable, Comparable<RolePrincipalGrant> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RolePrincipalGrant");
private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("roleName", org.apache.thrift.protocol.TType.STRING, (short)1);
@@ -599,120 +603,120 @@ public class RolePrincipalGrant implements org.apache.thrift.TBase<RolePrincipal
@Override
public int hashCode() {
- HashCodeBuilder builder = new HashCodeBuilder();
+ List<Object> list = new ArrayList<Object>();
boolean present_roleName = true && (isSetRoleName());
- builder.append(present_roleName);
+ list.add(present_roleName);
if (present_roleName)
- builder.append(roleName);
+ list.add(roleName);
boolean present_principalName = true && (isSetPrincipalName());
- builder.append(present_principalName);
+ list.add(present_principalName);
if (present_principalName)
- builder.append(principalName);
+ list.add(principalName);
boolean present_principalType = true && (isSetPrincipalType());
- builder.append(present_principalType);
+ list.add(present_principalType);
if (present_principalType)
- builder.append(principalType.getValue());
+ list.add(principalType.getValue());
boolean present_grantOption = true;
- builder.append(present_grantOption);
+ list.add(present_grantOption);
if (present_grantOption)
- builder.append(grantOption);
+ list.add(grantOption);
boolean present_grantTime = true;
- builder.append(present_grantTime);
+ list.add(present_grantTime);
if (present_grantTime)
- builder.append(grantTime);
+ list.add(grantTime);
boolean present_grantorName = true && (isSetGrantorName());
- builder.append(present_grantorName);
+ list.add(present_grantorName);
if (present_grantorName)
- builder.append(grantorName);
+ list.add(grantorName);
boolean present_grantorPrincipalType = true && (isSetGrantorPrincipalType());
- builder.append(present_grantorPrincipalType);
+ list.add(present_grantorPrincipalType);
if (present_grantorPrincipalType)
- builder.append(grantorPrincipalType.getValue());
+ list.add(grantorPrincipalType.getValue());
- return builder.toHashCode();
+ return list.hashCode();
}
+ @Override
public int compareTo(RolePrincipalGrant other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
- RolePrincipalGrant typedOther = (RolePrincipalGrant)other;
- lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
+ lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRoleName()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetPrincipalName()).compareTo(typedOther.isSetPrincipalName());
+ lastComparison = Boolean.valueOf(isSetPrincipalName()).compareTo(other.isSetPrincipalName());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPrincipalName()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalName, typedOther.principalName);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalName, other.principalName);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetPrincipalType()).compareTo(typedOther.isSetPrincipalType());
+ lastComparison = Boolean.valueOf(isSetPrincipalType()).compareTo(other.isSetPrincipalType());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPrincipalType()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalType, typedOther.principalType);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalType, other.principalType);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetGrantOption()).compareTo(typedOther.isSetGrantOption());
+ lastComparison = Boolean.valueOf(isSetGrantOption()).compareTo(other.isSetGrantOption());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetGrantOption()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantOption, typedOther.grantOption);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantOption, other.grantOption);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetGrantTime()).compareTo(typedOther.isSetGrantTime());
+ lastComparison = Boolean.valueOf(isSetGrantTime()).compareTo(other.isSetGrantTime());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetGrantTime()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantTime, typedOther.grantTime);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantTime, other.grantTime);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetGrantorName()).compareTo(typedOther.isSetGrantorName());
+ lastComparison = Boolean.valueOf(isSetGrantorName()).compareTo(other.isSetGrantorName());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetGrantorName()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorName, typedOther.grantorName);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorName, other.grantorName);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetGrantorPrincipalType()).compareTo(typedOther.isSetGrantorPrincipalType());
+ lastComparison = Boolean.valueOf(isSetGrantorPrincipalType()).compareTo(other.isSetGrantorPrincipalType());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetGrantorPrincipalType()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorPrincipalType, typedOther.grantorPrincipalType);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorPrincipalType, other.grantorPrincipalType);
if (lastComparison != 0) {
return lastComparison;
}
@@ -847,7 +851,7 @@ public class RolePrincipalGrant implements org.apache.thrift.TBase<RolePrincipal
break;
case 3: // PRINCIPAL_TYPE
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
- struct.principalType = PrincipalType.findByValue(iprot.readI32());
+ struct.principalType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32());
struct.setPrincipalTypeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
@@ -879,7 +883,7 @@ public class RolePrincipalGrant implements org.apache.thrift.TBase<RolePrincipal
break;
case 7: // GRANTOR_PRINCIPAL_TYPE
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
- struct.grantorPrincipalType = PrincipalType.findByValue(iprot.readI32());
+ struct.grantorPrincipalType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32());
struct.setGrantorPrincipalTypeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
@@ -1005,7 +1009,7 @@ public class RolePrincipalGrant implements org.apache.thrift.TBase<RolePrincipal
struct.setPrincipalNameIsSet(true);
}
if (incoming.get(2)) {
- struct.principalType = PrincipalType.findByValue(iprot.readI32());
+ struct.principalType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32());
struct.setPrincipalTypeIsSet(true);
}
if (incoming.get(3)) {
@@ -1021,7 +1025,7 @@ public class RolePrincipalGrant implements org.apache.thrift.TBase<RolePrincipal
struct.setGrantorNameIsSet(true);
}
if (incoming.get(6)) {
- struct.grantorPrincipalType = PrincipalType.findByValue(iprot.readI32());
+ struct.grantorPrincipalType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32());
struct.setGrantorPrincipalTypeIsSet(true);
}
}
http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java
index 31ee943..8ee63cb 100644
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java
@@ -1,12 +1,11 @@
/**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.2)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.hadoop.hive.metastore.api;
-import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
+import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public class Schema implements org.apache.thrift.TBase<Schema, Schema._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
+public class Schema implements org.apache.thrift.TBase<Schema, Schema._Fields>, java.io.Serializable, Cloneable, Comparable<Schema> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Schema");
private static final org.apache.thrift.protocol.TField FIELD_SCHEMAS_FIELD_DESC = new org.apache.thrift.protocol.TField("fieldSchemas", org.apache.thrift.protocol.TType.LIST, (short)1);
@@ -139,25 +143,14 @@ public class Schema implements org.apache.thrift.TBase<Schema, Schema._Fields>,
*/
public Schema(Schema other) {
if (other.isSetFieldSchemas()) {
- List<FieldSchema> __this__fieldSchemas = new ArrayList<FieldSchema>();
+ List<FieldSchema> __this__fieldSchemas = new ArrayList<FieldSchema>(other.fieldSchemas.size());
for (FieldSchema other_element : other.fieldSchemas) {
__this__fieldSchemas.add(new FieldSchema(other_element));
}
this.fieldSchemas = __this__fieldSchemas;
}
if (other.isSetProperties()) {
- Map<String,String> __this__properties = new HashMap<String,String>();
- for (Map.Entry<String, String> other_element : other.properties.entrySet()) {
-
- String other_element_key = other_element.getKey();
- String other_element_value = other_element.getValue();
-
- String __this__properties_copy_key = other_element_key;
-
- String __this__properties_copy_value = other_element_value;
-
- __this__properties.put(__this__properties_copy_key, __this__properties_copy_value);
- }
+ Map<String,String> __this__properties = new HashMap<String,String>(other.properties);
this.properties = __this__properties;
}
}
@@ -328,45 +321,45 @@ public class Schema implements org.apache.thrift.TBase<Schema, Schema._Fields>,
@Override
public int hashCode() {
- HashCodeBuilder builder = new HashCodeBuilder();
+ List<Object> list = new ArrayList<Object>();
boolean present_fieldSchemas = true && (isSetFieldSchemas());
- builder.append(present_fieldSchemas);
+ list.add(present_fieldSchemas);
if (present_fieldSchemas)
- builder.append(fieldSchemas);
+ list.add(fieldSchemas);
boolean present_properties = true && (isSetProperties());
- builder.append(present_properties);
+ list.add(present_properties);
if (present_properties)
- builder.append(properties);
+ list.add(properties);
- return builder.toHashCode();
+ return list.hashCode();
}
+ @Override
public int compareTo(Schema other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
- Schema typedOther = (Schema)other;
- lastComparison = Boolean.valueOf(isSetFieldSchemas()).compareTo(typedOther.isSetFieldSchemas());
+ lastComparison = Boolean.valueOf(isSetFieldSchemas()).compareTo(other.isSetFieldSchemas());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetFieldSchemas()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fieldSchemas, typedOther.fieldSchemas);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fieldSchemas, other.fieldSchemas);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetProperties()).compareTo(typedOther.isSetProperties());
+ lastComparison = Boolean.valueOf(isSetProperties()).compareTo(other.isSetProperties());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetProperties()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.properties, typedOther.properties);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.properties, other.properties);
if (lastComparison != 0) {
return lastComparison;
}
@@ -454,12 +447,12 @@ public class Schema implements org.apache.thrift.TBase<Schema, Schema._Fields>,
{
org.apache.thrift.protocol.TList _list294 = iprot.readListBegin();
struct.fieldSchemas = new ArrayList<FieldSchema>(_list294.size);
- for (int _i295 = 0; _i295 < _list294.size; ++_i295)
+ FieldSchema _elem295;
+ for (int _i296 = 0; _i296 < _list294.size; ++_i296)
{
- FieldSchema _elem296; // optional
- _elem296 = new FieldSchema();
- _elem296.read(iprot);
- struct.fieldSchemas.add(_elem296);
+ _elem295 = new FieldSchema();
+ _elem295.read(iprot);
+ struct.fieldSchemas.add(_elem295);
}
iprot.readListEnd();
}
@@ -473,13 +466,13 @@ public class Schema implements org.apache.thrift.TBase<Schema, Schema._Fields>,
{
org.apache.thrift.protocol.TMap _map297 = iprot.readMapBegin();
struct.properties = new HashMap<String,String>(2*_map297.size);
- for (int _i298 = 0; _i298 < _map297.size; ++_i298)
+ String _key298;
+ String _val299;
+ for (int _i300 = 0; _i300 < _map297.size; ++_i300)
{
- String _key299; // required
- String _val300; // required
- _key299 = iprot.readString();
- _val300 = iprot.readString();
- struct.properties.put(_key299, _val300);
+ _key298 = iprot.readString();
+ _val299 = iprot.readString();
+ struct.properties.put(_key298, _val299);
}
iprot.readMapEnd();
}
@@ -580,12 +573,12 @@ public class Schema implements org.apache.thrift.TBase<Schema, Schema._Fields>,
{
org.apache.thrift.protocol.TList _list305 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.fieldSchemas = new ArrayList<FieldSchema>(_list305.size);
- for (int _i306 = 0; _i306 < _list305.size; ++_i306)
+ FieldSchema _elem306;
+ for (int _i307 = 0; _i307 < _list305.size; ++_i307)
{
- FieldSchema _elem307; // optional
- _elem307 = new FieldSchema();
- _elem307.read(iprot);
- struct.fieldSchemas.add(_elem307);
+ _elem306 = new FieldSchema();
+ _elem306.read(iprot);
+ struct.fieldSchemas.add(_elem306);
}
}
struct.setFieldSchemasIsSet(true);
@@ -594,13 +587,13 @@ public class Schema implements org.apache.thrift.TBase<Schema, Schema._Fields>,
{
org.apache.thrift.protocol.TMap _map308 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.properties = new HashMap<String,String>(2*_map308.size);
- for (int _i309 = 0; _i309 < _map308.size; ++_i309)
+ String _key309;
+ String _val310;
+ for (int _i311 = 0; _i311 < _map308.size; ++_i311)
{
- String _key310; // required
- String _val311; // required
- _key310 = iprot.readString();
- _val311 = iprot.readString();
- struct.properties.put(_key310, _val311);
+ _key309 = iprot.readString();
+ _val310 = iprot.readString();
+ struct.properties.put(_key309, _val310);
}
}
struct.setPropertiesIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java
index 24d65bb..b3bfe5d 100644
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java
@@ -1,12 +1,11 @@
/**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.2)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.hadoop.hive.metastore.api;
-import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
+import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public class SerDeInfo implements org.apache.thrift.TBase<SerDeInfo, SerDeInfo._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
+public class SerDeInfo implements org.apache.thrift.TBase<SerDeInfo, SerDeInfo._Fields>, java.io.Serializable, Cloneable, Comparable<SerDeInfo> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SerDeInfo");
private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);
@@ -137,9 +141,9 @@ public class SerDeInfo implements org.apache.thrift.TBase<SerDeInfo, SerDeInfo._
Map<String,String> parameters)
{
this();
- this.name = name;
- this.serializationLib = serializationLib;
- this.parameters = parameters;
+ this.name = org.apache.hive.common.util.HiveStringUtils.intern(name);
+ this.serializationLib = org.apache.hive.common.util.HiveStringUtils.intern(serializationLib);
+ this.parameters = org.apache.hive.common.util.HiveStringUtils.intern(parameters);
}
/**
@@ -147,24 +151,13 @@ public class SerDeInfo implements org.apache.thrift.TBase<SerDeInfo, SerDeInfo._
*/
public SerDeInfo(SerDeInfo other) {
if (other.isSetName()) {
- this.name = other.name;
+ this.name = org.apache.hive.common.util.HiveStringUtils.intern(other.name);
}
if (other.isSetSerializationLib()) {
- this.serializationLib = other.serializationLib;
+ this.serializationLib = org.apache.hive.common.util.HiveStringUtils.intern(other.serializationLib);
}
if (other.isSetParameters()) {
- Map<String,String> __this__parameters = new HashMap<String,String>();
- for (Map.Entry<String, String> other_element : other.parameters.entrySet()) {
-
- String other_element_key = other_element.getKey();
- String other_element_value = other_element.getValue();
-
- String __this__parameters_copy_key = other_element_key;
-
- String __this__parameters_copy_value = other_element_value;
-
- __this__parameters.put(__this__parameters_copy_key, __this__parameters_copy_value);
- }
+ Map<String,String> __this__parameters = new HashMap<String,String>(other.parameters);
this.parameters = __this__parameters;
}
}
@@ -185,7 +178,7 @@ public class SerDeInfo implements org.apache.thrift.TBase<SerDeInfo, SerDeInfo._
}
public void setName(String name) {
- this.name = name;
+ this.name = org.apache.hive.common.util.HiveStringUtils.intern(name);
}
public void unsetName() {
@@ -208,7 +201,7 @@ public class SerDeInfo implements org.apache.thrift.TBase<SerDeInfo, SerDeInfo._
}
public void setSerializationLib(String serializationLib) {
- this.serializationLib = serializationLib;
+ this.serializationLib = org.apache.hive.common.util.HiveStringUtils.intern(serializationLib);
}
public void unsetSerializationLib() {
@@ -242,7 +235,7 @@ public class SerDeInfo implements org.apache.thrift.TBase<SerDeInfo, SerDeInfo._
}
public void setParameters(Map<String,String> parameters) {
- this.parameters = parameters;
+ this.parameters = org.apache.hive.common.util.HiveStringUtils.intern(parameters);
}
public void unsetParameters() {
@@ -366,60 +359,60 @@ public class SerDeInfo implements org.apache.thrift.TBase<SerDeInfo, SerDeInfo._
@Override
public int hashCode() {
- HashCodeBuilder builder = new HashCodeBuilder();
+ List<Object> list = new ArrayList<Object>();
boolean present_name = true && (isSetName());
- builder.append(present_name);
+ list.add(present_name);
if (present_name)
- builder.append(name);
+ list.add(name);
boolean present_serializationLib = true && (isSetSerializationLib());
- builder.append(present_serializationLib);
+ list.add(present_serializationLib);
if (present_serializationLib)
- builder.append(serializationLib);
+ list.add(serializationLib);
boolean present_parameters = true && (isSetParameters());
- builder.append(present_parameters);
+ list.add(present_parameters);
if (present_parameters)
- builder.append(parameters);
+ list.add(parameters);
- return builder.toHashCode();
+ return list.hashCode();
}
+ @Override
public int compareTo(SerDeInfo other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
- SerDeInfo typedOther = (SerDeInfo)other;
- lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
+ lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetName()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetSerializationLib()).compareTo(typedOther.isSetSerializationLib());
+ lastComparison = Boolean.valueOf(isSetSerializationLib()).compareTo(other.isSetSerializationLib());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSerializationLib()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serializationLib, typedOther.serializationLib);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serializationLib, other.serializationLib);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetParameters()).compareTo(typedOther.isSetParameters());
+ lastComparison = Boolean.valueOf(isSetParameters()).compareTo(other.isSetParameters());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetParameters()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, typedOther.parameters);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, other.parameters);
if (lastComparison != 0) {
return lastComparison;
}
@@ -531,13 +524,13 @@ public class SerDeInfo implements org.apache.thrift.TBase<SerDeInfo, SerDeInfo._
{
org.apache.thrift.protocol.TMap _map104 = iprot.readMapBegin();
struct.parameters = new HashMap<String,String>(2*_map104.size);
- for (int _i105 = 0; _i105 < _map104.size; ++_i105)
+ String _key105;
+ String _val106;
+ for (int _i107 = 0; _i107 < _map104.size; ++_i107)
{
- String _key106; // required
- String _val107; // required
- _key106 = iprot.readString();
- _val107 = iprot.readString();
- struct.parameters.put(_key106, _val107);
+ _key105 = iprot.readString();
+ _val106 = iprot.readString();
+ struct.parameters.put(_key105, _val106);
}
iprot.readMapEnd();
}
@@ -644,13 +637,13 @@ public class SerDeInfo implements org.apache.thrift.TBase<SerDeInfo, SerDeInfo._
{
org.apache.thrift.protocol.TMap _map110 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.parameters = new HashMap<String,String>(2*_map110.size);
- for (int _i111 = 0; _i111 < _map110.size; ++_i111)
+ String _key111;
+ String _val112;
+ for (int _i113 = 0; _i113 < _map110.size; ++_i113)
{
- String _key112; // required
- String _val113; // required
- _key112 = iprot.readString();
- _val113 = iprot.readString();
- struct.parameters.put(_key112, _val113);
+ _key111 = iprot.readString();
+ _val112 = iprot.readString();
+ struct.parameters.put(_key111, _val112);
}
}
struct.setParametersIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SetPartitionsStatsRequest.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SetPartitionsStatsRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SetPartitionsStatsRequest.java
index e62e410..13157ce 100644
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SetPartitionsStatsRequest.java
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SetPartitionsStatsRequest.java
@@ -1,12 +1,11 @@
/**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.2)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.hadoop.hive.metastore.api;
-import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
+import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public class SetPartitionsStatsRequest implements org.apache.thrift.TBase<SetPartitionsStatsRequest, SetPartitionsStatsRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
+public class SetPartitionsStatsRequest implements org.apache.thrift.TBase<SetPartitionsStatsRequest, SetPartitionsStatsRequest._Fields>, java.io.Serializable, Cloneable, Comparable<SetPartitionsStatsRequest> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SetPartitionsStatsRequest");
private static final org.apache.thrift.protocol.TField COL_STATS_FIELD_DESC = new org.apache.thrift.protocol.TField("colStats", org.apache.thrift.protocol.TType.LIST, (short)1);
@@ -128,7 +132,7 @@ public class SetPartitionsStatsRequest implements org.apache.thrift.TBase<SetPar
*/
public SetPartitionsStatsRequest(SetPartitionsStatsRequest other) {
if (other.isSetColStats()) {
- List<ColumnStatistics> __this__colStats = new ArrayList<ColumnStatistics>();
+ List<ColumnStatistics> __this__colStats = new ArrayList<ColumnStatistics>(other.colStats.size());
for (ColumnStatistics other_element : other.colStats) {
__this__colStats.add(new ColumnStatistics(other_element));
}
@@ -245,30 +249,30 @@ public class SetPartitionsStatsRequest implements org.apache.thrift.TBase<SetPar
@Override
public int hashCode() {
- HashCodeBuilder builder = new HashCodeBuilder();
+ List<Object> list = new ArrayList<Object>();
boolean present_colStats = true && (isSetColStats());
- builder.append(present_colStats);
+ list.add(present_colStats);
if (present_colStats)
- builder.append(colStats);
+ list.add(colStats);
- return builder.toHashCode();
+ return list.hashCode();
}
+ @Override
public int compareTo(SetPartitionsStatsRequest other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
- SetPartitionsStatsRequest typedOther = (SetPartitionsStatsRequest)other;
- lastComparison = Boolean.valueOf(isSetColStats()).compareTo(typedOther.isSetColStats());
+ lastComparison = Boolean.valueOf(isSetColStats()).compareTo(other.isSetColStats());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetColStats()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colStats, typedOther.colStats);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colStats, other.colStats);
if (lastComparison != 0) {
return lastComparison;
}
@@ -352,12 +356,12 @@ public class SetPartitionsStatsRequest implements org.apache.thrift.TBase<SetPar
{
org.apache.thrift.protocol.TList _list286 = iprot.readListBegin();
struct.colStats = new ArrayList<ColumnStatistics>(_list286.size);
- for (int _i287 = 0; _i287 < _list286.size; ++_i287)
+ ColumnStatistics _elem287;
+ for (int _i288 = 0; _i288 < _list286.size; ++_i288)
{
- ColumnStatistics _elem288; // optional
- _elem288 = new ColumnStatistics();
- _elem288.read(iprot);
- struct.colStats.add(_elem288);
+ _elem287 = new ColumnStatistics();
+ _elem287.read(iprot);
+ struct.colStats.add(_elem287);
}
iprot.readListEnd();
}
@@ -423,12 +427,12 @@ public class SetPartitionsStatsRequest implements org.apache.thrift.TBase<SetPar
{
org.apache.thrift.protocol.TList _list291 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.colStats = new ArrayList<ColumnStatistics>(_list291.size);
- for (int _i292 = 0; _i292 < _list291.size; ++_i292)
+ ColumnStatistics _elem292;
+ for (int _i293 = 0; _i293 < _list291.size; ++_i293)
{
- ColumnStatistics _elem293; // optional
- _elem293 = new ColumnStatistics();
- _elem293.read(iprot);
- struct.colStats.add(_elem293);
+ _elem292 = new ColumnStatistics();
+ _elem292.read(iprot);
+ struct.colStats.add(_elem292);
}
}
struct.setColStatsIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactRequest.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactRequest.java
index 28ad1c9..a40a04d 100644
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactRequest.java
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactRequest.java
@@ -1,12 +1,11 @@
/**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.2)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.hadoop.hive.metastore.api;
-import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
+import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public class ShowCompactRequest implements org.apache.thrift.TBase<ShowCompactRequest, ShowCompactRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
+public class ShowCompactRequest implements org.apache.thrift.TBase<ShowCompactRequest, ShowCompactRequest._Fields>, java.io.Serializable, Cloneable, Comparable<ShowCompactRequest> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ShowCompactRequest");
@@ -161,18 +165,18 @@ public class ShowCompactRequest implements org.apache.thrift.TBase<ShowCompactRe
@Override
public int hashCode() {
- HashCodeBuilder builder = new HashCodeBuilder();
+ List<Object> list = new ArrayList<Object>();
- return builder.toHashCode();
+ return list.hashCode();
}
+ @Override
public int compareTo(ShowCompactRequest other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
- ShowCompactRequest typedOther = (ShowCompactRequest)other;
return 0;
}
http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java
index c882b7b..617cff6 100644
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java
@@ -1,12 +1,11 @@
/**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.2)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.hadoop.hive.metastore.api;
-import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
+import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public class ShowCompactResponse implements org.apache.thrift.TBase<ShowCompactResponse, ShowCompactResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
+public class ShowCompactResponse implements org.apache.thrift.TBase<ShowCompactResponse, ShowCompactResponse._Fields>, java.io.Serializable, Cloneable, Comparable<ShowCompactResponse> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ShowCompactResponse");
private static final org.apache.thrift.protocol.TField COMPACTS_FIELD_DESC = new org.apache.thrift.protocol.TField("compacts", org.apache.thrift.protocol.TType.LIST, (short)1);
@@ -128,7 +132,7 @@ public class ShowCompactResponse implements org.apache.thrift.TBase<ShowCompactR
*/
public ShowCompactResponse(ShowCompactResponse other) {
if (other.isSetCompacts()) {
- List<ShowCompactResponseElement> __this__compacts = new ArrayList<ShowCompactResponseElement>();
+ List<ShowCompactResponseElement> __this__compacts = new ArrayList<ShowCompactResponseElement>(other.compacts.size());
for (ShowCompactResponseElement other_element : other.compacts) {
__this__compacts.add(new ShowCompactResponseElement(other_element));
}
@@ -245,30 +249,30 @@ public class ShowCompactResponse implements org.apache.thrift.TBase<ShowCompactR
@Override
public int hashCode() {
- HashCodeBuilder builder = new HashCodeBuilder();
+ List<Object> list = new ArrayList<Object>();
boolean present_compacts = true && (isSetCompacts());
- builder.append(present_compacts);
+ list.add(present_compacts);
if (present_compacts)
- builder.append(compacts);
+ list.add(compacts);
- return builder.toHashCode();
+ return list.hashCode();
}
+ @Override
public int compareTo(ShowCompactResponse other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
- ShowCompactResponse typedOther = (ShowCompactResponse)other;
- lastComparison = Boolean.valueOf(isSetCompacts()).compareTo(typedOther.isSetCompacts());
+ lastComparison = Boolean.valueOf(isSetCompacts()).compareTo(other.isSetCompacts());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetCompacts()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compacts, typedOther.compacts);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compacts, other.compacts);
if (lastComparison != 0) {
return lastComparison;
}
@@ -352,12 +356,12 @@ public class ShowCompactResponse implements org.apache.thrift.TBase<ShowCompactR
{
org.apache.thrift.protocol.TList _list484 = iprot.readListBegin();
struct.compacts = new ArrayList<ShowCompactResponseElement>(_list484.size);
- for (int _i485 = 0; _i485 < _list484.size; ++_i485)
+ ShowCompactResponseElement _elem485;
+ for (int _i486 = 0; _i486 < _list484.size; ++_i486)
{
- ShowCompactResponseElement _elem486; // optional
- _elem486 = new ShowCompactResponseElement();
- _elem486.read(iprot);
- struct.compacts.add(_elem486);
+ _elem485 = new ShowCompactResponseElement();
+ _elem485.read(iprot);
+ struct.compacts.add(_elem485);
}
iprot.readListEnd();
}
@@ -423,12 +427,12 @@ public class ShowCompactResponse implements org.apache.thrift.TBase<ShowCompactR
{
org.apache.thrift.protocol.TList _list489 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.compacts = new ArrayList<ShowCompactResponseElement>(_list489.size);
- for (int _i490 = 0; _i490 < _list489.size; ++_i490)
+ ShowCompactResponseElement _elem490;
+ for (int _i491 = 0; _i491 < _list489.size; ++_i491)
{
- ShowCompactResponseElement _elem491; // optional
- _elem491 = new ShowCompactResponseElement();
- _elem491.read(iprot);
- struct.compacts.add(_elem491);
+ _elem490 = new ShowCompactResponseElement();
+ _elem490.read(iprot);
+ struct.compacts.add(_elem490);
}
}
struct.setCompactsIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponseElement.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponseElement.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponseElement.java
index 365a401..308783b 100644
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponseElement.java
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponseElement.java
@@ -1,12 +1,11 @@
/**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.2)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.hadoop.hive.metastore.api;
-import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
+import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public class ShowCompactResponseElement implements org.apache.thrift.TBase<ShowCompactResponseElement, ShowCompactResponseElement._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
+public class ShowCompactResponseElement implements org.apache.thrift.TBase<ShowCompactResponseElement, ShowCompactResponseElement._Fields>, java.io.Serializable, Cloneable, Comparable<ShowCompactResponseElement> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ShowCompactResponseElement");
private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1);
@@ -144,7 +148,7 @@ public class ShowCompactResponseElement implements org.apache.thrift.TBase<ShowC
// isset id assignments
private static final int __START_ISSET_ID = 0;
private byte __isset_bitfield = 0;
- private _Fields optionals[] = {_Fields.PARTITIONNAME,_Fields.WORKERID,_Fields.START,_Fields.RUN_AS};
+ private static final _Fields optionals[] = {_Fields.PARTITIONNAME,_Fields.WORKERID,_Fields.START,_Fields.RUN_AS};
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
@@ -637,135 +641,135 @@ public class ShowCompactResponseElement implements org.apache.thrift.TBase<ShowC
@Override
public int hashCode() {
- HashCodeBuilder builder = new HashCodeBuilder();
+ List<Object> list = new ArrayList<Object>();
boolean present_dbname = true && (isSetDbname());
- builder.append(present_dbname);
+ list.add(present_dbname);
if (present_dbname)
- builder.append(dbname);
+ list.add(dbname);
boolean present_tablename = true && (isSetTablename());
- builder.append(present_tablename);
+ list.add(present_tablename);
if (present_tablename)
- builder.append(tablename);
+ list.add(tablename);
boolean present_partitionname = true && (isSetPartitionname());
- builder.append(present_partitionname);
+ list.add(present_partitionname);
if (present_partitionname)
- builder.append(partitionname);
+ list.add(partitionname);
boolean present_type = true && (isSetType());
- builder.append(present_type);
+ list.add(present_type);
if (present_type)
- builder.append(type.getValue());
+ list.add(type.getValue());
boolean present_state = true && (isSetState());
- builder.append(present_state);
+ list.add(present_state);
if (present_state)
- builder.append(state);
+ list.add(state);
boolean present_workerid = true && (isSetWorkerid());
- builder.append(present_workerid);
+ list.add(present_workerid);
if (present_workerid)
- builder.append(workerid);
+ list.add(workerid);
boolean present_start = true && (isSetStart());
- builder.append(present_start);
+ list.add(present_start);
if (present_start)
- builder.append(start);
+ list.add(start);
boolean present_runAs = true && (isSetRunAs());
- builder.append(present_runAs);
+ list.add(present_runAs);
if (present_runAs)
- builder.append(runAs);
+ list.add(runAs);
- return builder.toHashCode();
+ return list.hashCode();
}
+ @Override
public int compareTo(ShowCompactResponseElement other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
- ShowCompactResponseElement typedOther = (ShowCompactResponseElement)other;
- lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname());
+ lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetDbname()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetTablename()).compareTo(typedOther.isSetTablename());
+ lastComparison = Boolean.valueOf(isSetTablename()).compareTo(other.isSetTablename());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetTablename()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, typedOther.tablename);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, other.tablename);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetPartitionname()).compareTo(typedOther.isSetPartitionname());
+ lastComparison = Boolean.valueOf(isSetPartitionname()).compareTo(other.isSetPartitionname());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPartitionname()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionname, typedOther.partitionname);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionname, other.partitionname);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
+ lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetType()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetState()).compareTo(typedOther.isSetState());
+ lastComparison = Boolean.valueOf(isSetState()).compareTo(other.isSetState());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetState()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, typedOther.state);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, other.state);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetWorkerid()).compareTo(typedOther.isSetWorkerid());
+ lastComparison = Boolean.valueOf(isSetWorkerid()).compareTo(other.isSetWorkerid());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetWorkerid()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.workerid, typedOther.workerid);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.workerid, other.workerid);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetStart()).compareTo(typedOther.isSetStart());
+ lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetStart()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, typedOther.start);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetRunAs()).compareTo(typedOther.isSetRunAs());
+ lastComparison = Boolean.valueOf(isSetRunAs()).compareTo(other.isSetRunAs());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRunAs()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runAs, typedOther.runAs);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runAs, other.runAs);
if (lastComparison != 0) {
return lastComparison;
}
@@ -944,7 +948,7 @@ public class ShowCompactResponseElement implements org.apache.thrift.TBase<ShowC
break;
case 4: // TYPE
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
- struct.type = CompactionType.findByValue(iprot.readI32());
+ struct.type = org.apache.hadoop.hive.metastore.api.CompactionType.findByValue(iprot.readI32());
struct.setTypeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
@@ -1097,7 +1101,7 @@ public class ShowCompactResponseElement implements org.apache.thrift.TBase<ShowC
struct.setDbnameIsSet(true);
struct.tablename = iprot.readString();
struct.setTablenameIsSet(true);
- struct.type = CompactionType.findByValue(iprot.readI32());
+ struct.type = org.apache.hadoop.hive.metastore.api.CompactionType.findByValue(iprot.readI32());
struct.setTypeIsSet(true);
struct.state = iprot.readString();
struct.setStateIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksRequest.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksRequest.java
index 7a1fd6f..0cd2c73 100644
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksRequest.java
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksRequest.java
@@ -1,12 +1,11 @@
/**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.2)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.hadoop.hive.metastore.api;
-import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
+import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public class ShowLocksRequest implements org.apache.thrift.TBase<ShowLocksRequest, ShowLocksRequest._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
+public class ShowLocksRequest implements org.apache.thrift.TBase<ShowLocksRequest, ShowLocksRequest._Fields>, java.io.Serializable, Cloneable, Comparable<ShowLocksRequest> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ShowLocksRequest");
@@ -161,18 +165,18 @@ public class ShowLocksRequest implements org.apache.thrift.TBase<ShowLocksReques
@Override
public int hashCode() {
- HashCodeBuilder builder = new HashCodeBuilder();
+ List<Object> list = new ArrayList<Object>();
- return builder.toHashCode();
+ return list.hashCode();
}
+ @Override
public int compareTo(ShowLocksRequest other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
- ShowLocksRequest typedOther = (ShowLocksRequest)other;
return 0;
}
http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java
index 42cfe8c..aec38b2 100644
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java
@@ -1,12 +1,11 @@
/**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.2)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.hadoop.hive.metastore.api;
-import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
+import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public class ShowLocksResponse implements org.apache.thrift.TBase<ShowLocksResponse, ShowLocksResponse._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
+public class ShowLocksResponse implements org.apache.thrift.TBase<ShowLocksResponse, ShowLocksResponse._Fields>, java.io.Serializable, Cloneable, Comparable<ShowLocksResponse> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ShowLocksResponse");
private static final org.apache.thrift.protocol.TField LOCKS_FIELD_DESC = new org.apache.thrift.protocol.TField("locks", org.apache.thrift.protocol.TType.LIST, (short)1);
@@ -128,7 +132,7 @@ public class ShowLocksResponse implements org.apache.thrift.TBase<ShowLocksRespo
*/
public ShowLocksResponse(ShowLocksResponse other) {
if (other.isSetLocks()) {
- List<ShowLocksResponseElement> __this__locks = new ArrayList<ShowLocksResponseElement>();
+ List<ShowLocksResponseElement> __this__locks = new ArrayList<ShowLocksResponseElement>(other.locks.size());
for (ShowLocksResponseElement other_element : other.locks) {
__this__locks.add(new ShowLocksResponseElement(other_element));
}
@@ -245,30 +249,30 @@ public class ShowLocksResponse implements org.apache.thrift.TBase<ShowLocksRespo
@Override
public int hashCode() {
- HashCodeBuilder builder = new HashCodeBuilder();
+ List<Object> list = new ArrayList<Object>();
boolean present_locks = true && (isSetLocks());
- builder.append(present_locks);
+ list.add(present_locks);
if (present_locks)
- builder.append(locks);
+ list.add(locks);
- return builder.toHashCode();
+ return list.hashCode();
}
+ @Override
public int compareTo(ShowLocksResponse other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
- ShowLocksResponse typedOther = (ShowLocksResponse)other;
- lastComparison = Boolean.valueOf(isSetLocks()).compareTo(typedOther.isSetLocks());
+ lastComparison = Boolean.valueOf(isSetLocks()).compareTo(other.isSetLocks());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetLocks()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.locks, typedOther.locks);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.locks, other.locks);
if (lastComparison != 0) {
return lastComparison;
}
@@ -348,12 +352,12 @@ public class ShowLocksResponse implements org.apache.thrift.TBase<ShowLocksRespo
{
org.apache.thrift.protocol.TList _list460 = iprot.readListBegin();
struct.locks = new ArrayList<ShowLocksResponseElement>(_list460.size);
- for (int _i461 = 0; _i461 < _list460.size; ++_i461)
+ ShowLocksResponseElement _elem461;
+ for (int _i462 = 0; _i462 < _list460.size; ++_i462)
{
- ShowLocksResponseElement _elem462; // optional
- _elem462 = new ShowLocksResponseElement();
- _elem462.read(iprot);
- struct.locks.add(_elem462);
+ _elem461 = new ShowLocksResponseElement();
+ _elem461.read(iprot);
+ struct.locks.add(_elem461);
}
iprot.readListEnd();
}
@@ -428,12 +432,12 @@ public class ShowLocksResponse implements org.apache.thrift.TBase<ShowLocksRespo
{
org.apache.thrift.protocol.TList _list465 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.locks = new ArrayList<ShowLocksResponseElement>(_list465.size);
- for (int _i466 = 0; _i466 < _list465.size; ++_i466)
+ ShowLocksResponseElement _elem466;
+ for (int _i467 = 0; _i467 < _list465.size; ++_i467)
{
- ShowLocksResponseElement _elem467; // optional
- _elem467 = new ShowLocksResponseElement();
- _elem467.read(iprot);
- struct.locks.add(_elem467);
+ _elem466 = new ShowLocksResponseElement();
+ _elem466.read(iprot);
+ struct.locks.add(_elem466);
}
}
struct.setLocksIsSet(true);
http://git-wip-us.apache.org/repos/asf/hive/blob/42216997/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponseElement.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponseElement.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponseElement.java
index 2f7c24f..30463fe 100644
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponseElement.java
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponseElement.java
@@ -1,12 +1,11 @@
/**
- * Autogenerated by Thrift Compiler (0.9.0)
+ * Autogenerated by Thrift Compiler (0.9.2)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.hadoop.hive.metastore.api;
-import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
@@ -16,6 +15,8 @@ import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -28,10 +29,13 @@ import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
+import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public class ShowLocksResponseElement implements org.apache.thrift.TBase<ShowLocksResponseElement, ShowLocksResponseElement._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-14")
+public class ShowLocksResponseElement implements org.apache.thrift.TBase<ShowLocksResponseElement, ShowLocksResponseElement._Fields>, java.io.Serializable, Cloneable, Comparable<ShowLocksResponseElement> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ShowLocksResponseElement");
private static final org.apache.thrift.protocol.TField LOCKID_FIELD_DESC = new org.apache.thrift.protocol.TField("lockid", org.apache.thrift.protocol.TType.I64, (short)1);
@@ -166,7 +170,7 @@ public class ShowLocksResponseElement implements org.apache.thrift.TBase<ShowLoc
private static final int __LASTHEARTBEAT_ISSET_ID = 2;
private static final int __ACQUIREDAT_ISSET_ID = 3;
private byte __isset_bitfield = 0;
- private _Fields optionals[] = {_Fields.TABLENAME,_Fields.PARTNAME,_Fields.TXNID,_Fields.ACQUIREDAT};
+ private static final _Fields optionals[] = {_Fields.TABLENAME,_Fields.PARTNAME,_Fields.TXNID,_Fields.ACQUIREDAT};
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
@@ -822,180 +826,180 @@ public class ShowLocksResponseElement implements org.apache.thrift.TBase<ShowLoc
@Override
public int hashCode() {
- HashCodeBuilder builder = new HashCodeBuilder();
+ List<Object> list = new ArrayList<Object>();
boolean present_lockid = true;
- builder.append(present_lockid);
+ list.add(present_lockid);
if (present_lockid)
- builder.append(lockid);
+ list.add(lockid);
boolean present_dbname = true && (isSetDbname());
- builder.append(present_dbname);
+ list.add(present_dbname);
if (present_dbname)
- builder.append(dbname);
+ list.add(dbname);
boolean present_tablename = true && (isSetTablename());
- builder.append(present_tablename);
+ list.add(present_tablename);
if (present_tablename)
- builder.append(tablename);
+ list.add(tablename);
boolean present_partname = true && (isSetPartname());
- builder.append(present_partname);
+ list.add(present_partname);
if (present_partname)
- builder.append(partname);
+ list.add(partname);
boolean present_state = true && (isSetState());
- builder.append(present_state);
+ list.add(present_state);
if (present_state)
- builder.append(state.getValue());
+ list.add(state.getValue());
boolean present_type = true && (isSetType());
- builder.append(present_type);
+ list.add(present_type);
if (present_type)
- builder.append(type.getValue());
+ list.add(type.getValue());
boolean present_txnid = true && (isSetTxnid());
- builder.append(present_txnid);
+ list.add(present_txnid);
if (present_txnid)
- builder.append(txnid);
+ list.add(txnid);
boolean present_lastheartbeat = true;
- builder.append(present_lastheartbeat);
+ list.add(present_lastheartbeat);
if (present_lastheartbeat)
- builder.append(lastheartbeat);
+ list.add(lastheartbeat);
boolean present_acquiredat = true && (isSetAcquiredat());
- builder.append(present_acquiredat);
+ list.add(present_acquiredat);
if (present_acquiredat)
- builder.append(acquiredat);
+ list.add(acquiredat);
boolean present_user = true && (isSetUser());
- builder.append(present_user);
+ list.add(present_user);
if (present_user)
- builder.append(user);
+ list.add(user);
boolean present_hostname = true && (isSetHostname());
- builder.append(present_hostname);
+ list.add(present_hostname);
if (present_hostname)
- builder.append(hostname);
+ list.add(hostname);
- return builder.toHashCode();
+ return list.hashCode();
}
+ @Override
public int compareTo(ShowLocksResponseElement other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
- ShowLocksResponseElement typedOther = (ShowLocksResponseElement)other;
- lastComparison = Boolean.valueOf(isSetLockid()).compareTo(typedOther.isSetLockid());
+ lastComparison = Boolean.valueOf(isSetLockid()).compareTo(other.isSetLockid());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetLockid()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lockid, typedOther.lockid);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lockid, other.lockid);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname());
+ lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetDbname()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetTablename()).compareTo(typedOther.isSetTablename());
+ lastComparison = Boolean.valueOf(isSetTablename()).compareTo(other.isSetTablename());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetTablename()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, typedOther.tablename);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, other.tablename);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetPartname()).compareTo(typedOther.isSetPartname());
+ lastComparison = Boolean.valueOf(isSetPartname()).compareTo(other.isSetPartname());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPartname()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partname, typedOther.partname);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partname, other.partname);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetState()).compareTo(typedOther.isSetState());
+ lastComparison = Boolean.valueOf(isSetState()).compareTo(other.isSetState());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetState()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, typedOther.state);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, other.state);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
+ lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetType()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(typedOther.isSetTxnid());
+ lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(other.isSetTxnid());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetTxnid()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, typedOther.txnid);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, other.txnid);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetLastheartbeat()).compareTo(typedOther.isSetLastheartbeat());
+ lastComparison = Boolean.valueOf(isSetLastheartbeat()).compareTo(other.isSetLastheartbeat());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetLastheartbeat()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastheartbeat, typedOther.lastheartbeat);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastheartbeat, other.lastheartbeat);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetAcquiredat()).compareTo(typedOther.isSetAcquiredat());
+ lastComparison = Boolean.valueOf(isSetAcquiredat()).compareTo(other.isSetAcquiredat());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetAcquiredat()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.acquiredat, typedOther.acquiredat);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.acquiredat, other.acquiredat);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetUser()).compareTo(typedOther.isSetUser());
+ lastComparison = Boolean.valueOf(isSetUser()).compareTo(other.isSetUser());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetUser()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, typedOther.user);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, other.user);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetHostname()).compareTo(typedOther.isSetHostname());
+ lastComparison = Boolean.valueOf(isSetHostname()).compareTo(other.isSetHostname());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetHostname()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hostname, typedOther.hostname);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hostname, other.hostname);
if (lastComparison != 0) {
return lastComparison;
}
@@ -1206,7 +1210,7 @@ public class ShowLocksResponseElement implements org.apache.thrift.TBase<ShowLoc
break;
case 5: // STATE
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
- struct.state = LockState.findByValue(iprot.readI32());
+ struct.state = org.apache.hadoop.hive.metastore.api.LockState.findByValue(iprot.readI32());
struct.setStateIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
@@ -1214,7 +1218,7 @@ public class ShowLocksResponseElement implements org.apache.thrift.TBase<ShowLoc
break;
case 6: // TYPE
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
- struct.type = LockType.findByValue(iprot.readI32());
+ struct.type = org.apache.hadoop.hive.metastore.api.LockType.findByValue(iprot.readI32());
struct.setTypeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
@@ -1387,9 +1391,9 @@ public class ShowLocksResponseElement implements org.apache.thrift.TBase<ShowLoc
struct.setLockidIsSet(true);
struct.dbname = iprot.readString();
struct.setDbnameIsSet(true);
- struct.state = LockState.findByValue(iprot.readI32());
+ struct.state = org.apache.hadoop.hive.metastore.api.LockState.findByValue(iprot.readI32());
struct.setStateIsSet(true);
- struct.type = LockType.findByValue(iprot.readI32());
+ struct.type = org.apache.hadoop.hive.metastore.api.LockType.findByValue(iprot.readI32());
struct.setTypeIsSet(true);
struct.lastheartbeat = iprot.readI64();
struct.setLastheartbeatIsSet(true);