You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by am...@apache.org on 2011/09/05 10:47:06 UTC
svn commit: r1165207 [7/19] - in /hive/trunk: ./ cli/ eclipse-templates/
ivy/ jdbc/ lib/ metastore/ metastore/src/gen/thrift/gen-cpp/
metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/
metastore/src/gen/thrift/gen-php/hive_meta...
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=1165207&r1=1165206&r2=1165207&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 Sep 5 08:47:02 2011
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift
+ * Autogenerated by Thrift Compiler (0.7.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*/
@@ -20,23 +20,17 @@ import java.util.Arrays;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import org.apache.thrift.*;
-import org.apache.thrift.async.*;
-import org.apache.thrift.meta_data.*;
-import org.apache.thrift.transport.*;
-import org.apache.thrift.protocol.*;
+public class Schema implements org.apache.thrift.TBase<Schema, Schema._Fields>, java.io.Serializable, Cloneable {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Schema");
-public class Schema implements TBase<Schema, Schema._Fields>, java.io.Serializable, Cloneable {
- private static final TStruct STRUCT_DESC = new 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);
+ private static final org.apache.thrift.protocol.TField PROPERTIES_FIELD_DESC = new org.apache.thrift.protocol.TField("properties", org.apache.thrift.protocol.TType.MAP, (short)2);
- private static final TField FIELD_SCHEMAS_FIELD_DESC = new TField("fieldSchemas", TType.LIST, (short)1);
- private static final TField PROPERTIES_FIELD_DESC = new TField("properties", TType.MAP, (short)2);
-
- private List<FieldSchema> fieldSchemas;
- private Map<String,String> properties;
+ private List<FieldSchema> fieldSchemas; // required
+ private Map<String,String> properties; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
- public enum _Fields implements TFieldIdEnum {
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
FIELD_SCHEMAS((short)1, "fieldSchemas"),
PROPERTIES((short)2, "properties");
@@ -98,18 +92,18 @@ public class Schema implements TBase<Sch
// isset id assignments
- public static final Map<_Fields, FieldMetaData> metaDataMap;
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
- Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.FIELD_SCHEMAS, new FieldMetaData("fieldSchemas", TFieldRequirementType.DEFAULT,
- new ListMetaData(TType.LIST,
- new StructMetaData(TType.STRUCT, FieldSchema.class))));
- tmpMap.put(_Fields.PROPERTIES, new FieldMetaData("properties", TFieldRequirementType.DEFAULT,
- new MapMetaData(TType.MAP,
- new FieldValueMetaData(TType.STRING),
- new FieldValueMetaData(TType.STRING))));
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.FIELD_SCHEMAS, new org.apache.thrift.meta_data.FieldMetaData("fieldSchemas", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FieldSchema.class))));
+ tmpMap.put(_Fields.PROPERTIES, new org.apache.thrift.meta_data.FieldMetaData("properties", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
metaDataMap = Collections.unmodifiableMap(tmpMap);
- FieldMetaData.addStructMetaDataMap(Schema.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Schema.class, metaDataMap);
}
public Schema() {
@@ -189,7 +183,7 @@ public class Schema implements TBase<Sch
this.fieldSchemas = null;
}
- /** Returns true if field fieldSchemas is set (has been asigned a value) and false otherwise */
+ /** Returns true if field fieldSchemas is set (has been assigned a value) and false otherwise */
public boolean isSetFieldSchemas() {
return this.fieldSchemas != null;
}
@@ -223,7 +217,7 @@ public class Schema implements TBase<Sch
this.properties = null;
}
- /** Returns true if field properties is set (has been asigned a value) and false otherwise */
+ /** Returns true if field properties is set (has been assigned a value) and false otherwise */
public boolean isSetProperties() {
return this.properties != null;
}
@@ -267,7 +261,7 @@ public class Schema implements TBase<Sch
throw new IllegalStateException();
}
- /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
@@ -334,7 +328,7 @@ public class Schema implements TBase<Sch
return lastComparison;
}
if (isSetFieldSchemas()) {
- lastComparison = TBaseHelper.compareTo(this.fieldSchemas, typedOther.fieldSchemas);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fieldSchemas, typedOther.fieldSchemas);
if (lastComparison != 0) {
return lastComparison;
}
@@ -344,7 +338,7 @@ public class Schema implements TBase<Sch
return lastComparison;
}
if (isSetProperties()) {
- lastComparison = TBaseHelper.compareTo(this.properties, typedOther.properties);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.properties, typedOther.properties);
if (lastComparison != 0) {
return lastComparison;
}
@@ -356,24 +350,24 @@ public class Schema implements TBase<Sch
return _Fields.findByThriftId(fieldId);
}
- public void read(TProtocol iprot) throws TException {
- TField field;
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField field;
iprot.readStructBegin();
while (true)
{
field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
+ if (field.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (field.id) {
case 1: // FIELD_SCHEMAS
- if (field.type == TType.LIST) {
+ if (field.type == org.apache.thrift.protocol.TType.LIST) {
{
- TList _list89 = iprot.readListBegin();
+ org.apache.thrift.protocol.TList _list89 = iprot.readListBegin();
this.fieldSchemas = new ArrayList<FieldSchema>(_list89.size);
for (int _i90 = 0; _i90 < _list89.size; ++_i90)
{
- FieldSchema _elem91;
+ FieldSchema _elem91; // required
_elem91 = new FieldSchema();
_elem91.read(iprot);
this.fieldSchemas.add(_elem91);
@@ -381,18 +375,18 @@ public class Schema implements TBase<Sch
iprot.readListEnd();
}
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
case 2: // PROPERTIES
- if (field.type == TType.MAP) {
+ if (field.type == org.apache.thrift.protocol.TType.MAP) {
{
- TMap _map92 = iprot.readMapBegin();
+ org.apache.thrift.protocol.TMap _map92 = iprot.readMapBegin();
this.properties = new HashMap<String,String>(2*_map92.size);
for (int _i93 = 0; _i93 < _map92.size; ++_i93)
{
- String _key94;
- String _val95;
+ String _key94; // required
+ String _val95; // required
_key94 = iprot.readString();
_val95 = iprot.readString();
this.properties.put(_key94, _val95);
@@ -400,11 +394,11 @@ public class Schema implements TBase<Sch
iprot.readMapEnd();
}
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
default:
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
iprot.readFieldEnd();
}
@@ -412,14 +406,14 @@ public class Schema implements TBase<Sch
validate();
}
- public void write(TProtocol oprot) throws TException {
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
validate();
oprot.writeStructBegin(STRUCT_DESC);
if (this.fieldSchemas != null) {
oprot.writeFieldBegin(FIELD_SCHEMAS_FIELD_DESC);
{
- oprot.writeListBegin(new TList(TType.STRUCT, this.fieldSchemas.size()));
+ oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.fieldSchemas.size()));
for (FieldSchema _iter96 : this.fieldSchemas)
{
_iter96.write(oprot);
@@ -431,7 +425,7 @@ public class Schema implements TBase<Sch
if (this.properties != null) {
oprot.writeFieldBegin(PROPERTIES_FIELD_DESC);
{
- oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.properties.size()));
+ oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.properties.size()));
for (Map.Entry<String, String> _iter97 : this.properties.entrySet())
{
oprot.writeString(_iter97.getKey());
@@ -469,9 +463,25 @@ public class Schema implements TBase<Sch
return sb.toString();
}
- public void validate() throws TException {
+ public void validate() throws org.apache.thrift.TException {
// check for required fields
}
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ 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);
+ }
+ }
+
}
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=1165207&r1=1165206&r2=1165207&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 Sep 5 08:47:02 2011
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift
+ * Autogenerated by Thrift Compiler (0.7.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*/
@@ -20,25 +20,19 @@ import java.util.Arrays;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import org.apache.thrift.*;
-import org.apache.thrift.async.*;
-import org.apache.thrift.meta_data.*;
-import org.apache.thrift.transport.*;
-import org.apache.thrift.protocol.*;
-
-public class SerDeInfo implements TBase<SerDeInfo, SerDeInfo._Fields>, java.io.Serializable, Cloneable {
- private static final TStruct STRUCT_DESC = new TStruct("SerDeInfo");
-
- private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)1);
- private static final TField SERIALIZATION_LIB_FIELD_DESC = new TField("serializationLib", TType.STRING, (short)2);
- private static final TField PARAMETERS_FIELD_DESC = new TField("parameters", TType.MAP, (short)3);
-
- private String name;
- private String serializationLib;
- private Map<String,String> parameters;
+public class SerDeInfo implements org.apache.thrift.TBase<SerDeInfo, SerDeInfo._Fields>, java.io.Serializable, Cloneable {
+ 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);
+ private static final org.apache.thrift.protocol.TField SERIALIZATION_LIB_FIELD_DESC = new org.apache.thrift.protocol.TField("serializationLib", org.apache.thrift.protocol.TType.STRING, (short)2);
+ private static final org.apache.thrift.protocol.TField PARAMETERS_FIELD_DESC = new org.apache.thrift.protocol.TField("parameters", org.apache.thrift.protocol.TType.MAP, (short)3);
+
+ private String name; // required
+ private String serializationLib; // required
+ private Map<String,String> parameters; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
- public enum _Fields implements TFieldIdEnum {
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
NAME((short)1, "name"),
SERIALIZATION_LIB((short)2, "serializationLib"),
PARAMETERS((short)3, "parameters");
@@ -103,19 +97,19 @@ public class SerDeInfo implements TBase<
// isset id assignments
- public static final Map<_Fields, FieldMetaData> metaDataMap;
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
- Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT,
- new FieldValueMetaData(TType.STRING)));
- tmpMap.put(_Fields.SERIALIZATION_LIB, new FieldMetaData("serializationLib", TFieldRequirementType.DEFAULT,
- new FieldValueMetaData(TType.STRING)));
- tmpMap.put(_Fields.PARAMETERS, new FieldMetaData("parameters", TFieldRequirementType.DEFAULT,
- new MapMetaData(TType.MAP,
- new FieldValueMetaData(TType.STRING),
- new FieldValueMetaData(TType.STRING))));
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.SERIALIZATION_LIB, new org.apache.thrift.meta_data.FieldMetaData("serializationLib", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.PARAMETERS, new org.apache.thrift.meta_data.FieldMetaData("parameters", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
metaDataMap = Collections.unmodifiableMap(tmpMap);
- FieldMetaData.addStructMetaDataMap(SerDeInfo.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SerDeInfo.class, metaDataMap);
}
public SerDeInfo() {
@@ -182,7 +176,7 @@ public class SerDeInfo implements TBase<
this.name = null;
}
- /** Returns true if field name is set (has been asigned a value) and false otherwise */
+ /** Returns true if field name is set (has been assigned a value) and false otherwise */
public boolean isSetName() {
return this.name != null;
}
@@ -205,7 +199,7 @@ public class SerDeInfo implements TBase<
this.serializationLib = null;
}
- /** Returns true if field serializationLib is set (has been asigned a value) and false otherwise */
+ /** Returns true if field serializationLib is set (has been assigned a value) and false otherwise */
public boolean isSetSerializationLib() {
return this.serializationLib != null;
}
@@ -239,7 +233,7 @@ public class SerDeInfo implements TBase<
this.parameters = null;
}
- /** Returns true if field parameters is set (has been asigned a value) and false otherwise */
+ /** Returns true if field parameters is set (has been assigned a value) and false otherwise */
public boolean isSetParameters() {
return this.parameters != null;
}
@@ -294,7 +288,7 @@ public class SerDeInfo implements TBase<
throw new IllegalStateException();
}
- /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
@@ -372,7 +366,7 @@ public class SerDeInfo implements TBase<
return lastComparison;
}
if (isSetName()) {
- lastComparison = TBaseHelper.compareTo(this.name, typedOther.name);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
if (lastComparison != 0) {
return lastComparison;
}
@@ -382,7 +376,7 @@ public class SerDeInfo implements TBase<
return lastComparison;
}
if (isSetSerializationLib()) {
- lastComparison = TBaseHelper.compareTo(this.serializationLib, typedOther.serializationLib);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serializationLib, typedOther.serializationLib);
if (lastComparison != 0) {
return lastComparison;
}
@@ -392,7 +386,7 @@ public class SerDeInfo implements TBase<
return lastComparison;
}
if (isSetParameters()) {
- lastComparison = TBaseHelper.compareTo(this.parameters, typedOther.parameters);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, typedOther.parameters);
if (lastComparison != 0) {
return lastComparison;
}
@@ -404,39 +398,39 @@ public class SerDeInfo implements TBase<
return _Fields.findByThriftId(fieldId);
}
- public void read(TProtocol iprot) throws TException {
- TField field;
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField field;
iprot.readStructBegin();
while (true)
{
field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
+ if (field.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (field.id) {
case 1: // NAME
- if (field.type == TType.STRING) {
+ if (field.type == org.apache.thrift.protocol.TType.STRING) {
this.name = iprot.readString();
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
case 2: // SERIALIZATION_LIB
- if (field.type == TType.STRING) {
+ if (field.type == org.apache.thrift.protocol.TType.STRING) {
this.serializationLib = iprot.readString();
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
case 3: // PARAMETERS
- if (field.type == TType.MAP) {
+ if (field.type == org.apache.thrift.protocol.TType.MAP) {
{
- TMap _map44 = iprot.readMapBegin();
+ org.apache.thrift.protocol.TMap _map44 = iprot.readMapBegin();
this.parameters = new HashMap<String,String>(2*_map44.size);
for (int _i45 = 0; _i45 < _map44.size; ++_i45)
{
- String _key46;
- String _val47;
+ String _key46; // required
+ String _val47; // required
_key46 = iprot.readString();
_val47 = iprot.readString();
this.parameters.put(_key46, _val47);
@@ -444,11 +438,11 @@ public class SerDeInfo implements TBase<
iprot.readMapEnd();
}
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
default:
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
iprot.readFieldEnd();
}
@@ -456,7 +450,7 @@ public class SerDeInfo implements TBase<
validate();
}
- public void write(TProtocol oprot) throws TException {
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
validate();
oprot.writeStructBegin(STRUCT_DESC);
@@ -473,7 +467,7 @@ public class SerDeInfo implements TBase<
if (this.parameters != null) {
oprot.writeFieldBegin(PARAMETERS_FIELD_DESC);
{
- oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.parameters.size()));
+ oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.parameters.size()));
for (Map.Entry<String, String> _iter48 : this.parameters.entrySet())
{
oprot.writeString(_iter48.getKey());
@@ -519,9 +513,25 @@ public class SerDeInfo implements TBase<
return sb.toString();
}
- public void validate() throws TException {
+ public void validate() throws org.apache.thrift.TException {
// check for required fields
}
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ 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);
+ }
+ }
+
}
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=1165207&r1=1165206&r2=1165207&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 Sep 5 08:47:02 2011
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift
+ * Autogenerated by Thrift Compiler (0.7.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*/
@@ -20,39 +20,33 @@ import java.util.Arrays;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import org.apache.thrift.*;
-import org.apache.thrift.async.*;
-import org.apache.thrift.meta_data.*;
-import org.apache.thrift.transport.*;
-import org.apache.thrift.protocol.*;
-
-public class StorageDescriptor implements TBase<StorageDescriptor, StorageDescriptor._Fields>, java.io.Serializable, Cloneable {
- private static final TStruct STRUCT_DESC = new TStruct("StorageDescriptor");
-
- private static final TField COLS_FIELD_DESC = new TField("cols", TType.LIST, (short)1);
- private static final TField LOCATION_FIELD_DESC = new TField("location", TType.STRING, (short)2);
- private static final TField INPUT_FORMAT_FIELD_DESC = new TField("inputFormat", TType.STRING, (short)3);
- private static final TField OUTPUT_FORMAT_FIELD_DESC = new TField("outputFormat", TType.STRING, (short)4);
- private static final TField COMPRESSED_FIELD_DESC = new TField("compressed", TType.BOOL, (short)5);
- private static final TField NUM_BUCKETS_FIELD_DESC = new TField("numBuckets", TType.I32, (short)6);
- private static final TField SERDE_INFO_FIELD_DESC = new TField("serdeInfo", TType.STRUCT, (short)7);
- private static final TField BUCKET_COLS_FIELD_DESC = new TField("bucketCols", TType.LIST, (short)8);
- private static final TField SORT_COLS_FIELD_DESC = new TField("sortCols", TType.LIST, (short)9);
- private static final TField PARAMETERS_FIELD_DESC = new TField("parameters", TType.MAP, (short)10);
-
- private List<FieldSchema> cols;
- private String location;
- private String inputFormat;
- private String outputFormat;
- private boolean compressed;
- private int numBuckets;
- private SerDeInfo serdeInfo;
- private List<String> bucketCols;
- private List<Order> sortCols;
- private Map<String,String> parameters;
+public class StorageDescriptor implements org.apache.thrift.TBase<StorageDescriptor, StorageDescriptor._Fields>, java.io.Serializable, Cloneable {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("StorageDescriptor");
+
+ private static final org.apache.thrift.protocol.TField COLS_FIELD_DESC = new org.apache.thrift.protocol.TField("cols", org.apache.thrift.protocol.TType.LIST, (short)1);
+ private static final org.apache.thrift.protocol.TField LOCATION_FIELD_DESC = new org.apache.thrift.protocol.TField("location", org.apache.thrift.protocol.TType.STRING, (short)2);
+ private static final org.apache.thrift.protocol.TField INPUT_FORMAT_FIELD_DESC = new org.apache.thrift.protocol.TField("inputFormat", org.apache.thrift.protocol.TType.STRING, (short)3);
+ private static final org.apache.thrift.protocol.TField OUTPUT_FORMAT_FIELD_DESC = new org.apache.thrift.protocol.TField("outputFormat", org.apache.thrift.protocol.TType.STRING, (short)4);
+ private static final org.apache.thrift.protocol.TField COMPRESSED_FIELD_DESC = new org.apache.thrift.protocol.TField("compressed", org.apache.thrift.protocol.TType.BOOL, (short)5);
+ private static final org.apache.thrift.protocol.TField NUM_BUCKETS_FIELD_DESC = new org.apache.thrift.protocol.TField("numBuckets", org.apache.thrift.protocol.TType.I32, (short)6);
+ private static final org.apache.thrift.protocol.TField SERDE_INFO_FIELD_DESC = new org.apache.thrift.protocol.TField("serdeInfo", org.apache.thrift.protocol.TType.STRUCT, (short)7);
+ private static final org.apache.thrift.protocol.TField BUCKET_COLS_FIELD_DESC = new org.apache.thrift.protocol.TField("bucketCols", org.apache.thrift.protocol.TType.LIST, (short)8);
+ private static final org.apache.thrift.protocol.TField SORT_COLS_FIELD_DESC = new org.apache.thrift.protocol.TField("sortCols", org.apache.thrift.protocol.TType.LIST, (short)9);
+ private static final org.apache.thrift.protocol.TField PARAMETERS_FIELD_DESC = new org.apache.thrift.protocol.TField("parameters", org.apache.thrift.protocol.TType.MAP, (short)10);
+
+ private List<FieldSchema> cols; // required
+ private String location; // required
+ private String inputFormat; // required
+ private String outputFormat; // required
+ private boolean compressed; // required
+ private int numBuckets; // required
+ private SerDeInfo serdeInfo; // required
+ private List<String> bucketCols; // required
+ private List<Order> sortCols; // required
+ private Map<String,String> parameters; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
- public enum _Fields implements TFieldIdEnum {
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
COLS((short)1, "cols"),
LOCATION((short)2, "location"),
INPUT_FORMAT((short)3, "inputFormat"),
@@ -141,36 +135,36 @@ public class StorageDescriptor implement
private static final int __NUMBUCKETS_ISSET_ID = 1;
private BitSet __isset_bit_vector = new BitSet(2);
- public static final Map<_Fields, FieldMetaData> metaDataMap;
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
- Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.COLS, new FieldMetaData("cols", TFieldRequirementType.DEFAULT,
- new ListMetaData(TType.LIST,
- new StructMetaData(TType.STRUCT, FieldSchema.class))));
- tmpMap.put(_Fields.LOCATION, new FieldMetaData("location", TFieldRequirementType.DEFAULT,
- new FieldValueMetaData(TType.STRING)));
- tmpMap.put(_Fields.INPUT_FORMAT, new FieldMetaData("inputFormat", TFieldRequirementType.DEFAULT,
- new FieldValueMetaData(TType.STRING)));
- tmpMap.put(_Fields.OUTPUT_FORMAT, new FieldMetaData("outputFormat", TFieldRequirementType.DEFAULT,
- new FieldValueMetaData(TType.STRING)));
- tmpMap.put(_Fields.COMPRESSED, new FieldMetaData("compressed", TFieldRequirementType.DEFAULT,
- new FieldValueMetaData(TType.BOOL)));
- tmpMap.put(_Fields.NUM_BUCKETS, new FieldMetaData("numBuckets", TFieldRequirementType.DEFAULT,
- new FieldValueMetaData(TType.I32)));
- tmpMap.put(_Fields.SERDE_INFO, new FieldMetaData("serdeInfo", TFieldRequirementType.DEFAULT,
- new StructMetaData(TType.STRUCT, SerDeInfo.class)));
- tmpMap.put(_Fields.BUCKET_COLS, new FieldMetaData("bucketCols", TFieldRequirementType.DEFAULT,
- new ListMetaData(TType.LIST,
- new FieldValueMetaData(TType.STRING))));
- tmpMap.put(_Fields.SORT_COLS, new FieldMetaData("sortCols", TFieldRequirementType.DEFAULT,
- new ListMetaData(TType.LIST,
- new StructMetaData(TType.STRUCT, Order.class))));
- tmpMap.put(_Fields.PARAMETERS, new FieldMetaData("parameters", TFieldRequirementType.DEFAULT,
- new MapMetaData(TType.MAP,
- new FieldValueMetaData(TType.STRING),
- new FieldValueMetaData(TType.STRING))));
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.COLS, new org.apache.thrift.meta_data.FieldMetaData("cols", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FieldSchema.class))));
+ tmpMap.put(_Fields.LOCATION, new org.apache.thrift.meta_data.FieldMetaData("location", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.INPUT_FORMAT, new org.apache.thrift.meta_data.FieldMetaData("inputFormat", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.OUTPUT_FORMAT, new org.apache.thrift.meta_data.FieldMetaData("outputFormat", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.COMPRESSED, new org.apache.thrift.meta_data.FieldMetaData("compressed", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+ tmpMap.put(_Fields.NUM_BUCKETS, new org.apache.thrift.meta_data.FieldMetaData("numBuckets", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
+ tmpMap.put(_Fields.SERDE_INFO, new org.apache.thrift.meta_data.FieldMetaData("serdeInfo", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SerDeInfo.class)));
+ tmpMap.put(_Fields.BUCKET_COLS, new org.apache.thrift.meta_data.FieldMetaData("bucketCols", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
+ tmpMap.put(_Fields.SORT_COLS, new org.apache.thrift.meta_data.FieldMetaData("sortCols", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
+ tmpMap.put(_Fields.PARAMETERS, new org.apache.thrift.meta_data.FieldMetaData("parameters", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
metaDataMap = Collections.unmodifiableMap(tmpMap);
- FieldMetaData.addStructMetaDataMap(StorageDescriptor.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(StorageDescriptor.class, metaDataMap);
}
public StorageDescriptor() {
@@ -308,7 +302,7 @@ public class StorageDescriptor implement
this.cols = null;
}
- /** Returns true if field cols is set (has been asigned a value) and false otherwise */
+ /** Returns true if field cols is set (has been assigned a value) and false otherwise */
public boolean isSetCols() {
return this.cols != null;
}
@@ -331,7 +325,7 @@ public class StorageDescriptor implement
this.location = null;
}
- /** Returns true if field location is set (has been asigned a value) and false otherwise */
+ /** Returns true if field location is set (has been assigned a value) and false otherwise */
public boolean isSetLocation() {
return this.location != null;
}
@@ -354,7 +348,7 @@ public class StorageDescriptor implement
this.inputFormat = null;
}
- /** Returns true if field inputFormat is set (has been asigned a value) and false otherwise */
+ /** Returns true if field inputFormat is set (has been assigned a value) and false otherwise */
public boolean isSetInputFormat() {
return this.inputFormat != null;
}
@@ -377,7 +371,7 @@ public class StorageDescriptor implement
this.outputFormat = null;
}
- /** Returns true if field outputFormat is set (has been asigned a value) and false otherwise */
+ /** Returns true if field outputFormat is set (has been assigned a value) and false otherwise */
public boolean isSetOutputFormat() {
return this.outputFormat != null;
}
@@ -401,7 +395,7 @@ public class StorageDescriptor implement
__isset_bit_vector.clear(__COMPRESSED_ISSET_ID);
}
- /** Returns true if field compressed is set (has been asigned a value) and false otherwise */
+ /** Returns true if field compressed is set (has been assigned a value) and false otherwise */
public boolean isSetCompressed() {
return __isset_bit_vector.get(__COMPRESSED_ISSET_ID);
}
@@ -423,7 +417,7 @@ public class StorageDescriptor implement
__isset_bit_vector.clear(__NUMBUCKETS_ISSET_ID);
}
- /** Returns true if field numBuckets is set (has been asigned a value) and false otherwise */
+ /** Returns true if field numBuckets is set (has been assigned a value) and false otherwise */
public boolean isSetNumBuckets() {
return __isset_bit_vector.get(__NUMBUCKETS_ISSET_ID);
}
@@ -444,7 +438,7 @@ public class StorageDescriptor implement
this.serdeInfo = null;
}
- /** Returns true if field serdeInfo is set (has been asigned a value) and false otherwise */
+ /** Returns true if field serdeInfo is set (has been assigned a value) and false otherwise */
public boolean isSetSerdeInfo() {
return this.serdeInfo != null;
}
@@ -482,7 +476,7 @@ public class StorageDescriptor implement
this.bucketCols = null;
}
- /** Returns true if field bucketCols is set (has been asigned a value) and false otherwise */
+ /** Returns true if field bucketCols is set (has been assigned a value) and false otherwise */
public boolean isSetBucketCols() {
return this.bucketCols != null;
}
@@ -520,7 +514,7 @@ public class StorageDescriptor implement
this.sortCols = null;
}
- /** Returns true if field sortCols is set (has been asigned a value) and false otherwise */
+ /** Returns true if field sortCols is set (has been assigned a value) and false otherwise */
public boolean isSetSortCols() {
return this.sortCols != null;
}
@@ -554,7 +548,7 @@ public class StorageDescriptor implement
this.parameters = null;
}
- /** Returns true if field parameters is set (has been asigned a value) and false otherwise */
+ /** Returns true if field parameters is set (has been assigned a value) and false otherwise */
public boolean isSetParameters() {
return this.parameters != null;
}
@@ -665,10 +659,10 @@ public class StorageDescriptor implement
return getOutputFormat();
case COMPRESSED:
- return new Boolean(isCompressed());
+ return Boolean.valueOf(isCompressed());
case NUM_BUCKETS:
- return new Integer(getNumBuckets());
+ return Integer.valueOf(getNumBuckets());
case SERDE_INFO:
return getSerdeInfo();
@@ -686,7 +680,7 @@ public class StorageDescriptor implement
throw new IllegalStateException();
}
- /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
@@ -841,7 +835,7 @@ public class StorageDescriptor implement
return lastComparison;
}
if (isSetCols()) {
- lastComparison = TBaseHelper.compareTo(this.cols, typedOther.cols);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cols, typedOther.cols);
if (lastComparison != 0) {
return lastComparison;
}
@@ -851,7 +845,7 @@ public class StorageDescriptor implement
return lastComparison;
}
if (isSetLocation()) {
- lastComparison = TBaseHelper.compareTo(this.location, typedOther.location);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.location, typedOther.location);
if (lastComparison != 0) {
return lastComparison;
}
@@ -861,7 +855,7 @@ public class StorageDescriptor implement
return lastComparison;
}
if (isSetInputFormat()) {
- lastComparison = TBaseHelper.compareTo(this.inputFormat, typedOther.inputFormat);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inputFormat, typedOther.inputFormat);
if (lastComparison != 0) {
return lastComparison;
}
@@ -871,7 +865,7 @@ public class StorageDescriptor implement
return lastComparison;
}
if (isSetOutputFormat()) {
- lastComparison = TBaseHelper.compareTo(this.outputFormat, typedOther.outputFormat);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.outputFormat, typedOther.outputFormat);
if (lastComparison != 0) {
return lastComparison;
}
@@ -881,7 +875,7 @@ public class StorageDescriptor implement
return lastComparison;
}
if (isSetCompressed()) {
- lastComparison = TBaseHelper.compareTo(this.compressed, typedOther.compressed);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compressed, typedOther.compressed);
if (lastComparison != 0) {
return lastComparison;
}
@@ -891,7 +885,7 @@ public class StorageDescriptor implement
return lastComparison;
}
if (isSetNumBuckets()) {
- lastComparison = TBaseHelper.compareTo(this.numBuckets, typedOther.numBuckets);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numBuckets, typedOther.numBuckets);
if (lastComparison != 0) {
return lastComparison;
}
@@ -901,7 +895,7 @@ public class StorageDescriptor implement
return lastComparison;
}
if (isSetSerdeInfo()) {
- lastComparison = TBaseHelper.compareTo(this.serdeInfo, typedOther.serdeInfo);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serdeInfo, typedOther.serdeInfo);
if (lastComparison != 0) {
return lastComparison;
}
@@ -911,7 +905,7 @@ public class StorageDescriptor implement
return lastComparison;
}
if (isSetBucketCols()) {
- lastComparison = TBaseHelper.compareTo(this.bucketCols, typedOther.bucketCols);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bucketCols, typedOther.bucketCols);
if (lastComparison != 0) {
return lastComparison;
}
@@ -921,7 +915,7 @@ public class StorageDescriptor implement
return lastComparison;
}
if (isSetSortCols()) {
- lastComparison = TBaseHelper.compareTo(this.sortCols, typedOther.sortCols);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sortCols, typedOther.sortCols);
if (lastComparison != 0) {
return lastComparison;
}
@@ -931,7 +925,7 @@ public class StorageDescriptor implement
return lastComparison;
}
if (isSetParameters()) {
- lastComparison = TBaseHelper.compareTo(this.parameters, typedOther.parameters);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, typedOther.parameters);
if (lastComparison != 0) {
return lastComparison;
}
@@ -943,24 +937,24 @@ public class StorageDescriptor implement
return _Fields.findByThriftId(fieldId);
}
- public void read(TProtocol iprot) throws TException {
- TField field;
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField field;
iprot.readStructBegin();
while (true)
{
field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
+ if (field.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (field.id) {
case 1: // COLS
- if (field.type == TType.LIST) {
+ if (field.type == org.apache.thrift.protocol.TType.LIST) {
{
- TList _list49 = iprot.readListBegin();
+ org.apache.thrift.protocol.TList _list49 = iprot.readListBegin();
this.cols = new ArrayList<FieldSchema>(_list49.size);
for (int _i50 = 0; _i50 < _list49.size; ++_i50)
{
- FieldSchema _elem51;
+ FieldSchema _elem51; // required
_elem51 = new FieldSchema();
_elem51.read(iprot);
this.cols.add(_elem51);
@@ -968,79 +962,79 @@ public class StorageDescriptor implement
iprot.readListEnd();
}
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
case 2: // LOCATION
- if (field.type == TType.STRING) {
+ if (field.type == org.apache.thrift.protocol.TType.STRING) {
this.location = iprot.readString();
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
case 3: // INPUT_FORMAT
- if (field.type == TType.STRING) {
+ if (field.type == org.apache.thrift.protocol.TType.STRING) {
this.inputFormat = iprot.readString();
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
case 4: // OUTPUT_FORMAT
- if (field.type == TType.STRING) {
+ if (field.type == org.apache.thrift.protocol.TType.STRING) {
this.outputFormat = iprot.readString();
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
case 5: // COMPRESSED
- if (field.type == TType.BOOL) {
+ if (field.type == org.apache.thrift.protocol.TType.BOOL) {
this.compressed = iprot.readBool();
setCompressedIsSet(true);
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
case 6: // NUM_BUCKETS
- if (field.type == TType.I32) {
+ if (field.type == org.apache.thrift.protocol.TType.I32) {
this.numBuckets = iprot.readI32();
setNumBucketsIsSet(true);
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
case 7: // SERDE_INFO
- if (field.type == TType.STRUCT) {
+ if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
this.serdeInfo = new SerDeInfo();
this.serdeInfo.read(iprot);
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
case 8: // BUCKET_COLS
- if (field.type == TType.LIST) {
+ if (field.type == org.apache.thrift.protocol.TType.LIST) {
{
- TList _list52 = iprot.readListBegin();
+ org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
this.bucketCols = new ArrayList<String>(_list52.size);
for (int _i53 = 0; _i53 < _list52.size; ++_i53)
{
- String _elem54;
+ String _elem54; // required
_elem54 = iprot.readString();
this.bucketCols.add(_elem54);
}
iprot.readListEnd();
}
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
case 9: // SORT_COLS
- if (field.type == TType.LIST) {
+ if (field.type == org.apache.thrift.protocol.TType.LIST) {
{
- TList _list55 = iprot.readListBegin();
+ org.apache.thrift.protocol.TList _list55 = iprot.readListBegin();
this.sortCols = new ArrayList<Order>(_list55.size);
for (int _i56 = 0; _i56 < _list55.size; ++_i56)
{
- Order _elem57;
+ Order _elem57; // required
_elem57 = new Order();
_elem57.read(iprot);
this.sortCols.add(_elem57);
@@ -1048,18 +1042,18 @@ public class StorageDescriptor implement
iprot.readListEnd();
}
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
case 10: // PARAMETERS
- if (field.type == TType.MAP) {
+ if (field.type == org.apache.thrift.protocol.TType.MAP) {
{
- TMap _map58 = iprot.readMapBegin();
+ org.apache.thrift.protocol.TMap _map58 = iprot.readMapBegin();
this.parameters = new HashMap<String,String>(2*_map58.size);
for (int _i59 = 0; _i59 < _map58.size; ++_i59)
{
- String _key60;
- String _val61;
+ String _key60; // required
+ String _val61; // required
_key60 = iprot.readString();
_val61 = iprot.readString();
this.parameters.put(_key60, _val61);
@@ -1067,11 +1061,11 @@ public class StorageDescriptor implement
iprot.readMapEnd();
}
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
default:
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
iprot.readFieldEnd();
}
@@ -1079,14 +1073,14 @@ public class StorageDescriptor implement
validate();
}
- public void write(TProtocol oprot) throws TException {
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
validate();
oprot.writeStructBegin(STRUCT_DESC);
if (this.cols != null) {
oprot.writeFieldBegin(COLS_FIELD_DESC);
{
- oprot.writeListBegin(new TList(TType.STRUCT, this.cols.size()));
+ oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.cols.size()));
for (FieldSchema _iter62 : this.cols)
{
_iter62.write(oprot);
@@ -1124,7 +1118,7 @@ public class StorageDescriptor implement
if (this.bucketCols != null) {
oprot.writeFieldBegin(BUCKET_COLS_FIELD_DESC);
{
- oprot.writeListBegin(new TList(TType.STRING, this.bucketCols.size()));
+ oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.bucketCols.size()));
for (String _iter63 : this.bucketCols)
{
oprot.writeString(_iter63);
@@ -1136,7 +1130,7 @@ public class StorageDescriptor implement
if (this.sortCols != null) {
oprot.writeFieldBegin(SORT_COLS_FIELD_DESC);
{
- oprot.writeListBegin(new TList(TType.STRUCT, this.sortCols.size()));
+ oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.sortCols.size()));
for (Order _iter64 : this.sortCols)
{
_iter64.write(oprot);
@@ -1148,7 +1142,7 @@ public class StorageDescriptor implement
if (this.parameters != null) {
oprot.writeFieldBegin(PARAMETERS_FIELD_DESC);
{
- oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.parameters.size()));
+ oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.parameters.size()));
for (Map.Entry<String, String> _iter65 : this.parameters.entrySet())
{
oprot.writeString(_iter65.getKey());
@@ -1242,9 +1236,27 @@ public class StorageDescriptor implement
return sb.toString();
}
- public void validate() throws TException {
+ public void validate() throws org.apache.thrift.TException {
// check for required fields
}
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ 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);
+ }
+ }
+
}
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=1165207&r1=1165206&r2=1165207&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 Sep 5 08:47:02 2011
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift
+ * Autogenerated by Thrift Compiler (0.7.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*/
@@ -20,45 +20,39 @@ import java.util.Arrays;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import org.apache.thrift.*;
-import org.apache.thrift.async.*;
-import org.apache.thrift.meta_data.*;
-import org.apache.thrift.transport.*;
-import org.apache.thrift.protocol.*;
-
-public class Table implements TBase<Table, Table._Fields>, java.io.Serializable, Cloneable {
- private static final TStruct STRUCT_DESC = new TStruct("Table");
-
- private static final TField TABLE_NAME_FIELD_DESC = new TField("tableName", TType.STRING, (short)1);
- private static final TField DB_NAME_FIELD_DESC = new TField("dbName", TType.STRING, (short)2);
- private static final TField OWNER_FIELD_DESC = new TField("owner", TType.STRING, (short)3);
- private static final TField CREATE_TIME_FIELD_DESC = new TField("createTime", TType.I32, (short)4);
- private static final TField LAST_ACCESS_TIME_FIELD_DESC = new TField("lastAccessTime", TType.I32, (short)5);
- private static final TField RETENTION_FIELD_DESC = new TField("retention", TType.I32, (short)6);
- private static final TField SD_FIELD_DESC = new TField("sd", TType.STRUCT, (short)7);
- private static final TField PARTITION_KEYS_FIELD_DESC = new TField("partitionKeys", TType.LIST, (short)8);
- private static final TField PARAMETERS_FIELD_DESC = new TField("parameters", TType.MAP, (short)9);
- private static final TField VIEW_ORIGINAL_TEXT_FIELD_DESC = new TField("viewOriginalText", TType.STRING, (short)10);
- private static final TField VIEW_EXPANDED_TEXT_FIELD_DESC = new TField("viewExpandedText", TType.STRING, (short)11);
- private static final TField TABLE_TYPE_FIELD_DESC = new TField("tableType", TType.STRING, (short)12);
- private static final TField PRIVILEGES_FIELD_DESC = new TField("privileges", TType.STRUCT, (short)13);
-
- private String tableName;
- private String dbName;
- private String owner;
- private int createTime;
- private int lastAccessTime;
- private int retention;
- private StorageDescriptor sd;
- private List<FieldSchema> partitionKeys;
- private Map<String,String> parameters;
- private String viewOriginalText;
- private String viewExpandedText;
- private String tableType;
- private PrincipalPrivilegeSet privileges;
+public class Table implements org.apache.thrift.TBase<Table, Table._Fields>, java.io.Serializable, Cloneable {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Table");
+
+ private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
+ private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)2);
+ private static final org.apache.thrift.protocol.TField OWNER_FIELD_DESC = new org.apache.thrift.protocol.TField("owner", org.apache.thrift.protocol.TType.STRING, (short)3);
+ private static final org.apache.thrift.protocol.TField CREATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("createTime", org.apache.thrift.protocol.TType.I32, (short)4);
+ private static final org.apache.thrift.protocol.TField LAST_ACCESS_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastAccessTime", org.apache.thrift.protocol.TType.I32, (short)5);
+ private static final org.apache.thrift.protocol.TField RETENTION_FIELD_DESC = new org.apache.thrift.protocol.TField("retention", org.apache.thrift.protocol.TType.I32, (short)6);
+ private static final org.apache.thrift.protocol.TField SD_FIELD_DESC = new org.apache.thrift.protocol.TField("sd", org.apache.thrift.protocol.TType.STRUCT, (short)7);
+ private static final org.apache.thrift.protocol.TField PARTITION_KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionKeys", org.apache.thrift.protocol.TType.LIST, (short)8);
+ private static final org.apache.thrift.protocol.TField PARAMETERS_FIELD_DESC = new org.apache.thrift.protocol.TField("parameters", org.apache.thrift.protocol.TType.MAP, (short)9);
+ private static final org.apache.thrift.protocol.TField VIEW_ORIGINAL_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("viewOriginalText", org.apache.thrift.protocol.TType.STRING, (short)10);
+ private static final org.apache.thrift.protocol.TField VIEW_EXPANDED_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("viewExpandedText", org.apache.thrift.protocol.TType.STRING, (short)11);
+ private static final org.apache.thrift.protocol.TField TABLE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("tableType", org.apache.thrift.protocol.TType.STRING, (short)12);
+ private static final org.apache.thrift.protocol.TField PRIVILEGES_FIELD_DESC = new org.apache.thrift.protocol.TField("privileges", org.apache.thrift.protocol.TType.STRUCT, (short)13);
+
+ private String tableName; // required
+ private String dbName; // required
+ private String owner; // required
+ private int createTime; // required
+ private int lastAccessTime; // required
+ private int retention; // required
+ private StorageDescriptor sd; // required
+ private List<FieldSchema> partitionKeys; // required
+ private Map<String,String> parameters; // required
+ private String viewOriginalText; // required
+ private String viewExpandedText; // required
+ private String tableType; // required
+ private PrincipalPrivilegeSet privileges; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
- public enum _Fields implements TFieldIdEnum {
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
TABLE_NAME((short)1, "tableName"),
DB_NAME((short)2, "dbName"),
OWNER((short)3, "owner"),
@@ -157,40 +151,40 @@ public class Table implements TBase<Tabl
private static final int __RETENTION_ISSET_ID = 2;
private BitSet __isset_bit_vector = new BitSet(3);
- public static final Map<_Fields, FieldMetaData> metaDataMap;
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
- Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.TABLE_NAME, new FieldMetaData("tableName", TFieldRequirementType.DEFAULT,
- new FieldValueMetaData(TType.STRING)));
- tmpMap.put(_Fields.DB_NAME, new FieldMetaData("dbName", TFieldRequirementType.DEFAULT,
- new FieldValueMetaData(TType.STRING)));
- tmpMap.put(_Fields.OWNER, new FieldMetaData("owner", TFieldRequirementType.DEFAULT,
- new FieldValueMetaData(TType.STRING)));
- tmpMap.put(_Fields.CREATE_TIME, new FieldMetaData("createTime", TFieldRequirementType.DEFAULT,
- new FieldValueMetaData(TType.I32)));
- tmpMap.put(_Fields.LAST_ACCESS_TIME, new FieldMetaData("lastAccessTime", TFieldRequirementType.DEFAULT,
- new FieldValueMetaData(TType.I32)));
- tmpMap.put(_Fields.RETENTION, new FieldMetaData("retention", TFieldRequirementType.DEFAULT,
- new FieldValueMetaData(TType.I32)));
- tmpMap.put(_Fields.SD, new FieldMetaData("sd", TFieldRequirementType.DEFAULT,
- new StructMetaData(TType.STRUCT, StorageDescriptor.class)));
- tmpMap.put(_Fields.PARTITION_KEYS, new FieldMetaData("partitionKeys", TFieldRequirementType.DEFAULT,
- new ListMetaData(TType.LIST,
- new StructMetaData(TType.STRUCT, FieldSchema.class))));
- tmpMap.put(_Fields.PARAMETERS, new FieldMetaData("parameters", TFieldRequirementType.DEFAULT,
- new MapMetaData(TType.MAP,
- new FieldValueMetaData(TType.STRING),
- new FieldValueMetaData(TType.STRING))));
- tmpMap.put(_Fields.VIEW_ORIGINAL_TEXT, new FieldMetaData("viewOriginalText", TFieldRequirementType.DEFAULT,
- new FieldValueMetaData(TType.STRING)));
- tmpMap.put(_Fields.VIEW_EXPANDED_TEXT, new FieldMetaData("viewExpandedText", TFieldRequirementType.DEFAULT,
- new FieldValueMetaData(TType.STRING)));
- tmpMap.put(_Fields.TABLE_TYPE, new FieldMetaData("tableType", TFieldRequirementType.DEFAULT,
- new FieldValueMetaData(TType.STRING)));
- tmpMap.put(_Fields.PRIVILEGES, new FieldMetaData("privileges", TFieldRequirementType.OPTIONAL,
- new StructMetaData(TType.STRUCT, PrincipalPrivilegeSet.class)));
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("dbName", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.OWNER, new org.apache.thrift.meta_data.FieldMetaData("owner", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.CREATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("createTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
+ tmpMap.put(_Fields.LAST_ACCESS_TIME, new org.apache.thrift.meta_data.FieldMetaData("lastAccessTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
+ tmpMap.put(_Fields.RETENTION, new org.apache.thrift.meta_data.FieldMetaData("retention", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
+ tmpMap.put(_Fields.SD, new org.apache.thrift.meta_data.FieldMetaData("sd", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StorageDescriptor.class)));
+ tmpMap.put(_Fields.PARTITION_KEYS, new org.apache.thrift.meta_data.FieldMetaData("partitionKeys", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FieldSchema.class))));
+ tmpMap.put(_Fields.PARAMETERS, new org.apache.thrift.meta_data.FieldMetaData("parameters", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
+ tmpMap.put(_Fields.VIEW_ORIGINAL_TEXT, new org.apache.thrift.meta_data.FieldMetaData("viewOriginalText", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.VIEW_EXPANDED_TEXT, new org.apache.thrift.meta_data.FieldMetaData("viewExpandedText", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.TABLE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("tableType", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.PRIVILEGES, new org.apache.thrift.meta_data.FieldMetaData("privileges", org.apache.thrift.TFieldRequirementType.OPTIONAL,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PrincipalPrivilegeSet.class)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
- FieldMetaData.addStructMetaDataMap(Table.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Table.class, metaDataMap);
}
public Table() {
@@ -321,7 +315,7 @@ public class Table implements TBase<Tabl
this.tableName = null;
}
- /** Returns true if field tableName is set (has been asigned a value) and false otherwise */
+ /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
public boolean isSetTableName() {
return this.tableName != null;
}
@@ -344,7 +338,7 @@ public class Table implements TBase<Tabl
this.dbName = null;
}
- /** Returns true if field dbName is set (has been asigned a value) and false otherwise */
+ /** Returns true if field dbName is set (has been assigned a value) and false otherwise */
public boolean isSetDbName() {
return this.dbName != null;
}
@@ -367,7 +361,7 @@ public class Table implements TBase<Tabl
this.owner = null;
}
- /** Returns true if field owner is set (has been asigned a value) and false otherwise */
+ /** Returns true if field owner is set (has been assigned a value) and false otherwise */
public boolean isSetOwner() {
return this.owner != null;
}
@@ -391,7 +385,7 @@ public class Table implements TBase<Tabl
__isset_bit_vector.clear(__CREATETIME_ISSET_ID);
}
- /** Returns true if field createTime is set (has been asigned a value) and false otherwise */
+ /** Returns true if field createTime is set (has been assigned a value) and false otherwise */
public boolean isSetCreateTime() {
return __isset_bit_vector.get(__CREATETIME_ISSET_ID);
}
@@ -413,7 +407,7 @@ public class Table implements TBase<Tabl
__isset_bit_vector.clear(__LASTACCESSTIME_ISSET_ID);
}
- /** Returns true if field lastAccessTime is set (has been asigned a value) and false otherwise */
+ /** Returns true if field lastAccessTime is set (has been assigned a value) and false otherwise */
public boolean isSetLastAccessTime() {
return __isset_bit_vector.get(__LASTACCESSTIME_ISSET_ID);
}
@@ -435,7 +429,7 @@ public class Table implements TBase<Tabl
__isset_bit_vector.clear(__RETENTION_ISSET_ID);
}
- /** Returns true if field retention is set (has been asigned a value) and false otherwise */
+ /** Returns true if field retention is set (has been assigned a value) and false otherwise */
public boolean isSetRetention() {
return __isset_bit_vector.get(__RETENTION_ISSET_ID);
}
@@ -456,7 +450,7 @@ public class Table implements TBase<Tabl
this.sd = null;
}
- /** Returns true if field sd is set (has been asigned a value) and false otherwise */
+ /** Returns true if field sd is set (has been assigned a value) and false otherwise */
public boolean isSetSd() {
return this.sd != null;
}
@@ -494,7 +488,7 @@ public class Table implements TBase<Tabl
this.partitionKeys = null;
}
- /** Returns true if field partitionKeys is set (has been asigned a value) and false otherwise */
+ /** Returns true if field partitionKeys is set (has been assigned a value) and false otherwise */
public boolean isSetPartitionKeys() {
return this.partitionKeys != null;
}
@@ -528,7 +522,7 @@ public class Table implements TBase<Tabl
this.parameters = null;
}
- /** Returns true if field parameters is set (has been asigned a value) and false otherwise */
+ /** Returns true if field parameters is set (has been assigned a value) and false otherwise */
public boolean isSetParameters() {
return this.parameters != null;
}
@@ -551,7 +545,7 @@ public class Table implements TBase<Tabl
this.viewOriginalText = null;
}
- /** Returns true if field viewOriginalText is set (has been asigned a value) and false otherwise */
+ /** Returns true if field viewOriginalText is set (has been assigned a value) and false otherwise */
public boolean isSetViewOriginalText() {
return this.viewOriginalText != null;
}
@@ -574,7 +568,7 @@ public class Table implements TBase<Tabl
this.viewExpandedText = null;
}
- /** Returns true if field viewExpandedText is set (has been asigned a value) and false otherwise */
+ /** Returns true if field viewExpandedText is set (has been assigned a value) and false otherwise */
public boolean isSetViewExpandedText() {
return this.viewExpandedText != null;
}
@@ -597,7 +591,7 @@ public class Table implements TBase<Tabl
this.tableType = null;
}
- /** Returns true if field tableType is set (has been asigned a value) and false otherwise */
+ /** Returns true if field tableType is set (has been assigned a value) and false otherwise */
public boolean isSetTableType() {
return this.tableType != null;
}
@@ -620,7 +614,7 @@ public class Table implements TBase<Tabl
this.privileges = null;
}
- /** Returns true if field privileges is set (has been asigned a value) and false otherwise */
+ /** Returns true if field privileges is set (has been assigned a value) and false otherwise */
public boolean isSetPrivileges() {
return this.privileges != null;
}
@@ -752,13 +746,13 @@ public class Table implements TBase<Tabl
return getOwner();
case CREATE_TIME:
- return new Integer(getCreateTime());
+ return Integer.valueOf(getCreateTime());
case LAST_ACCESS_TIME:
- return new Integer(getLastAccessTime());
+ return Integer.valueOf(getLastAccessTime());
case RETENTION:
- return new Integer(getRetention());
+ return Integer.valueOf(getRetention());
case SD:
return getSd();
@@ -785,7 +779,7 @@ public class Table implements TBase<Tabl
throw new IllegalStateException();
}
- /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
@@ -973,7 +967,7 @@ public class Table implements TBase<Tabl
return lastComparison;
}
if (isSetTableName()) {
- lastComparison = TBaseHelper.compareTo(this.tableName, typedOther.tableName);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
if (lastComparison != 0) {
return lastComparison;
}
@@ -983,7 +977,7 @@ public class Table implements TBase<Tabl
return lastComparison;
}
if (isSetDbName()) {
- lastComparison = TBaseHelper.compareTo(this.dbName, typedOther.dbName);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName);
if (lastComparison != 0) {
return lastComparison;
}
@@ -993,7 +987,7 @@ public class Table implements TBase<Tabl
return lastComparison;
}
if (isSetOwner()) {
- lastComparison = TBaseHelper.compareTo(this.owner, typedOther.owner);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.owner, typedOther.owner);
if (lastComparison != 0) {
return lastComparison;
}
@@ -1003,7 +997,7 @@ public class Table implements TBase<Tabl
return lastComparison;
}
if (isSetCreateTime()) {
- lastComparison = TBaseHelper.compareTo(this.createTime, typedOther.createTime);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, typedOther.createTime);
if (lastComparison != 0) {
return lastComparison;
}
@@ -1013,7 +1007,7 @@ public class Table implements TBase<Tabl
return lastComparison;
}
if (isSetLastAccessTime()) {
- lastComparison = TBaseHelper.compareTo(this.lastAccessTime, typedOther.lastAccessTime);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAccessTime, typedOther.lastAccessTime);
if (lastComparison != 0) {
return lastComparison;
}
@@ -1023,7 +1017,7 @@ public class Table implements TBase<Tabl
return lastComparison;
}
if (isSetRetention()) {
- lastComparison = TBaseHelper.compareTo(this.retention, typedOther.retention);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.retention, typedOther.retention);
if (lastComparison != 0) {
return lastComparison;
}
@@ -1033,7 +1027,7 @@ public class Table implements TBase<Tabl
return lastComparison;
}
if (isSetSd()) {
- lastComparison = TBaseHelper.compareTo(this.sd, typedOther.sd);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sd, typedOther.sd);
if (lastComparison != 0) {
return lastComparison;
}
@@ -1043,7 +1037,7 @@ public class Table implements TBase<Tabl
return lastComparison;
}
if (isSetPartitionKeys()) {
- lastComparison = TBaseHelper.compareTo(this.partitionKeys, typedOther.partitionKeys);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionKeys, typedOther.partitionKeys);
if (lastComparison != 0) {
return lastComparison;
}
@@ -1053,7 +1047,7 @@ public class Table implements TBase<Tabl
return lastComparison;
}
if (isSetParameters()) {
- lastComparison = TBaseHelper.compareTo(this.parameters, typedOther.parameters);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, typedOther.parameters);
if (lastComparison != 0) {
return lastComparison;
}
@@ -1063,7 +1057,7 @@ public class Table implements TBase<Tabl
return lastComparison;
}
if (isSetViewOriginalText()) {
- lastComparison = TBaseHelper.compareTo(this.viewOriginalText, typedOther.viewOriginalText);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.viewOriginalText, typedOther.viewOriginalText);
if (lastComparison != 0) {
return lastComparison;
}
@@ -1073,7 +1067,7 @@ public class Table implements TBase<Tabl
return lastComparison;
}
if (isSetViewExpandedText()) {
- lastComparison = TBaseHelper.compareTo(this.viewExpandedText, typedOther.viewExpandedText);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.viewExpandedText, typedOther.viewExpandedText);
if (lastComparison != 0) {
return lastComparison;
}
@@ -1083,7 +1077,7 @@ public class Table implements TBase<Tabl
return lastComparison;
}
if (isSetTableType()) {
- lastComparison = TBaseHelper.compareTo(this.tableType, typedOther.tableType);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableType, typedOther.tableType);
if (lastComparison != 0) {
return lastComparison;
}
@@ -1093,7 +1087,7 @@ public class Table implements TBase<Tabl
return lastComparison;
}
if (isSetPrivileges()) {
- lastComparison = TBaseHelper.compareTo(this.privileges, typedOther.privileges);
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges);
if (lastComparison != 0) {
return lastComparison;
}
@@ -1105,77 +1099,77 @@ public class Table implements TBase<Tabl
return _Fields.findByThriftId(fieldId);
}
- public void read(TProtocol iprot) throws TException {
- TField field;
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField field;
iprot.readStructBegin();
while (true)
{
field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
+ if (field.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (field.id) {
case 1: // TABLE_NAME
- if (field.type == TType.STRING) {
+ if (field.type == org.apache.thrift.protocol.TType.STRING) {
this.tableName = iprot.readString();
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
case 2: // DB_NAME
- if (field.type == TType.STRING) {
+ if (field.type == org.apache.thrift.protocol.TType.STRING) {
this.dbName = iprot.readString();
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
case 3: // OWNER
- if (field.type == TType.STRING) {
+ if (field.type == org.apache.thrift.protocol.TType.STRING) {
this.owner = iprot.readString();
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
case 4: // CREATE_TIME
- if (field.type == TType.I32) {
+ if (field.type == org.apache.thrift.protocol.TType.I32) {
this.createTime = iprot.readI32();
setCreateTimeIsSet(true);
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
case 5: // LAST_ACCESS_TIME
- if (field.type == TType.I32) {
+ if (field.type == org.apache.thrift.protocol.TType.I32) {
this.lastAccessTime = iprot.readI32();
setLastAccessTimeIsSet(true);
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
case 6: // RETENTION
- if (field.type == TType.I32) {
+ if (field.type == org.apache.thrift.protocol.TType.I32) {
this.retention = iprot.readI32();
setRetentionIsSet(true);
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
case 7: // SD
- if (field.type == TType.STRUCT) {
+ if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
this.sd = new StorageDescriptor();
this.sd.read(iprot);
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
case 8: // PARTITION_KEYS
- if (field.type == TType.LIST) {
+ if (field.type == org.apache.thrift.protocol.TType.LIST) {
{
- TList _list66 = iprot.readListBegin();
+ org.apache.thrift.protocol.TList _list66 = iprot.readListBegin();
this.partitionKeys = new ArrayList<FieldSchema>(_list66.size);
for (int _i67 = 0; _i67 < _list66.size; ++_i67)
{
- FieldSchema _elem68;
+ FieldSchema _elem68; // required
_elem68 = new FieldSchema();
_elem68.read(iprot);
this.partitionKeys.add(_elem68);
@@ -1183,18 +1177,18 @@ public class Table implements TBase<Tabl
iprot.readListEnd();
}
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
case 9: // PARAMETERS
- if (field.type == TType.MAP) {
+ if (field.type == org.apache.thrift.protocol.TType.MAP) {
{
- TMap _map69 = iprot.readMapBegin();
+ org.apache.thrift.protocol.TMap _map69 = iprot.readMapBegin();
this.parameters = new HashMap<String,String>(2*_map69.size);
for (int _i70 = 0; _i70 < _map69.size; ++_i70)
{
- String _key71;
- String _val72;
+ String _key71; // required
+ String _val72; // required
_key71 = iprot.readString();
_val72 = iprot.readString();
this.parameters.put(_key71, _val72);
@@ -1202,40 +1196,40 @@ public class Table implements TBase<Tabl
iprot.readMapEnd();
}
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
case 10: // VIEW_ORIGINAL_TEXT
- if (field.type == TType.STRING) {
+ if (field.type == org.apache.thrift.protocol.TType.STRING) {
this.viewOriginalText = iprot.readString();
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
case 11: // VIEW_EXPANDED_TEXT
- if (field.type == TType.STRING) {
+ if (field.type == org.apache.thrift.protocol.TType.STRING) {
this.viewExpandedText = iprot.readString();
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
case 12: // TABLE_TYPE
- if (field.type == TType.STRING) {
+ if (field.type == org.apache.thrift.protocol.TType.STRING) {
this.tableType = iprot.readString();
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
case 13: // PRIVILEGES
- if (field.type == TType.STRUCT) {
+ if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
this.privileges = new PrincipalPrivilegeSet();
this.privileges.read(iprot);
} else {
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
break;
default:
- TProtocolUtil.skip(iprot, field.type);
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
}
iprot.readFieldEnd();
}
@@ -1243,7 +1237,7 @@ public class Table implements TBase<Tabl
validate();
}
- public void write(TProtocol oprot) throws TException {
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
validate();
oprot.writeStructBegin(STRUCT_DESC);
@@ -1279,7 +1273,7 @@ public class Table implements TBase<Tabl
if (this.partitionKeys != null) {
oprot.writeFieldBegin(PARTITION_KEYS_FIELD_DESC);
{
- oprot.writeListBegin(new TList(TType.STRUCT, this.partitionKeys.size()));
+ oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.partitionKeys.size()));
for (FieldSchema _iter73 : this.partitionKeys)
{
_iter73.write(oprot);
@@ -1291,7 +1285,7 @@ public class Table implements TBase<Tabl
if (this.parameters != null) {
oprot.writeFieldBegin(PARAMETERS_FIELD_DESC);
{
- oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.parameters.size()));
+ oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.parameters.size()));
for (Map.Entry<String, String> _iter74 : this.parameters.entrySet())
{
oprot.writeString(_iter74.getKey());
@@ -1429,9 +1423,27 @@ public class Table implements TBase<Tabl
return sb.toString();
}
- public void validate() throws TException {
+ public void validate() throws org.apache.thrift.TException {
// check for required fields
}
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ 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);
+ }
+ }
+
}