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 11:08:20 UTC

svn commit: r1165216 [17/19] - in /hive/branches/branch-0.8: ./ 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/ge...

Modified: hive/branches/branch-0.8/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveServerException.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-0.8/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveServerException.java?rev=1165216&r1=1165215&r2=1165216&view=diff
==============================================================================
--- hive/branches/branch-0.8/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveServerException.java (original)
+++ hive/branches/branch-0.8/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveServerException.java Mon Sep  5 09:08:16 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 HiveServerException extends Exception implements TBase<HiveServerException, HiveServerException._Fields>, java.io.Serializable, Cloneable {
-  private static final TStruct STRUCT_DESC = new TStruct("HiveServerException");
-
-  private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRING, (short)1);
-  private static final TField ERROR_CODE_FIELD_DESC = new TField("errorCode", TType.I32, (short)2);
-  private static final TField SQLSTATE_FIELD_DESC = new TField("SQLState", TType.STRING, (short)3);
-
-  private String message;
-  private int errorCode;
-  private String SQLState;
+public class HiveServerException extends Exception implements org.apache.thrift.TBase<HiveServerException, HiveServerException._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HiveServerException");
+
+  private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1);
+  private static final org.apache.thrift.protocol.TField ERROR_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("errorCode", org.apache.thrift.protocol.TType.I32, (short)2);
+  private static final org.apache.thrift.protocol.TField SQLSTATE_FIELD_DESC = new org.apache.thrift.protocol.TField("SQLState", org.apache.thrift.protocol.TType.STRING, (short)3);
+
+  private String message; // required
+  private int errorCode; // required
+  private String SQLState; // 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 {
     MESSAGE((short)1, "message"),
     ERROR_CODE((short)2, "errorCode"),
     SQLSTATE((short)3, "SQLState");
@@ -105,17 +99,17 @@ public class HiveServerException extends
   private static final int __ERRORCODE_ISSET_ID = 0;
   private BitSet __isset_bit_vector = new BitSet(1);
 
-  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.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT, 
-        new FieldValueMetaData(TType.STRING)));
-    tmpMap.put(_Fields.ERROR_CODE, new FieldMetaData("errorCode", TFieldRequirementType.DEFAULT, 
-        new FieldValueMetaData(TType.I32)));
-    tmpMap.put(_Fields.SQLSTATE, new FieldMetaData("SQLState", TFieldRequirementType.DEFAULT, 
-        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.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.ERROR_CODE, new org.apache.thrift.meta_data.FieldMetaData("errorCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
+    tmpMap.put(_Fields.SQLSTATE, new org.apache.thrift.meta_data.FieldMetaData("SQLState", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
     metaDataMap = Collections.unmodifiableMap(tmpMap);
-    FieldMetaData.addStructMetaDataMap(HiveServerException.class, metaDataMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(HiveServerException.class, metaDataMap);
   }
 
   public HiveServerException() {
@@ -172,7 +166,7 @@ public class HiveServerException extends
     this.message = null;
   }
 
-  /** Returns true if field message is set (has been asigned a value) and false otherwise */
+  /** Returns true if field message is set (has been assigned a value) and false otherwise */
   public boolean isSetMessage() {
     return this.message != null;
   }
@@ -196,7 +190,7 @@ public class HiveServerException extends
     __isset_bit_vector.clear(__ERRORCODE_ISSET_ID);
   }
 
-  /** Returns true if field errorCode is set (has been asigned a value) and false otherwise */
+  /** Returns true if field errorCode is set (has been assigned a value) and false otherwise */
   public boolean isSetErrorCode() {
     return __isset_bit_vector.get(__ERRORCODE_ISSET_ID);
   }
@@ -217,7 +211,7 @@ public class HiveServerException extends
     this.SQLState = null;
   }
 
-  /** Returns true if field SQLState is set (has been asigned a value) and false otherwise */
+  /** Returns true if field SQLState is set (has been assigned a value) and false otherwise */
   public boolean isSetSQLState() {
     return this.SQLState != null;
   }
@@ -263,7 +257,7 @@ public class HiveServerException extends
       return getMessage();
 
     case ERROR_CODE:
-      return new Integer(getErrorCode());
+      return Integer.valueOf(getErrorCode());
 
     case SQLSTATE:
       return getSQLState();
@@ -272,7 +266,7 @@ public class HiveServerException extends
     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();
@@ -350,7 +344,7 @@ public class HiveServerException extends
       return lastComparison;
     }
     if (isSetMessage()) {
-      lastComparison = TBaseHelper.compareTo(this.message, typedOther.message);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -360,7 +354,7 @@ public class HiveServerException extends
       return lastComparison;
     }
     if (isSetErrorCode()) {
-      lastComparison = TBaseHelper.compareTo(this.errorCode, typedOther.errorCode);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, typedOther.errorCode);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -370,7 +364,7 @@ public class HiveServerException extends
       return lastComparison;
     }
     if (isSetSQLState()) {
-      lastComparison = TBaseHelper.compareTo(this.SQLState, typedOther.SQLState);
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.SQLState, typedOther.SQLState);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -382,40 +376,40 @@ public class HiveServerException extends
     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: // MESSAGE
-          if (field.type == TType.STRING) {
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
             this.message = iprot.readString();
           } else { 
-            TProtocolUtil.skip(iprot, field.type);
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
           }
           break;
         case 2: // ERROR_CODE
-          if (field.type == TType.I32) {
+          if (field.type == org.apache.thrift.protocol.TType.I32) {
             this.errorCode = iprot.readI32();
             setErrorCodeIsSet(true);
           } else { 
-            TProtocolUtil.skip(iprot, field.type);
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
           }
           break;
         case 3: // SQLSTATE
-          if (field.type == TType.STRING) {
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
             this.SQLState = iprot.readString();
           } 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();
     }
@@ -423,7 +417,7 @@ public class HiveServerException extends
     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);
@@ -472,9 +466,27 @@ public class HiveServerException extends
     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/branches/branch-0.8/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/JobTrackerState.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-0.8/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/JobTrackerState.java?rev=1165216&r1=1165215&r2=1165216&view=diff
==============================================================================
--- hive/branches/branch-0.8/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/JobTrackerState.java (original)
+++ hive/branches/branch-0.8/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/JobTrackerState.java Mon Sep  5 09:08:16 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
  */
@@ -10,7 +10,7 @@ import java.util.Map;
 import java.util.HashMap;
 import org.apache.thrift.TEnum;
 
-public enum JobTrackerState implements TEnum {
+public enum JobTrackerState implements org.apache.thrift.TEnum {
   INITIALIZING(1),
   RUNNING(2);