You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by jv...@apache.org on 2010/07/30 08:40:11 UTC

svn commit: r980659 [4/34] - in /hadoop/hive/trunk: ./ common/src/java/org/apache/hadoop/hive/common/ contrib/src/test/results/clientpositive/ metastore/if/ metastore/src/gen-cpp/ metastore/src/gen-javabean/org/apache/hadoop/hive/metastore/api/ metasto...

Modified: hadoop/hive/trunk/metastore/src/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/metastore/src/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java?rev=980659&r1=980658&r2=980659&view=diff
==============================================================================
--- hadoop/hive/trunk/metastore/src/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java (original)
+++ hadoop/hive/trunk/metastore/src/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java Fri Jul 30 06:40:04 2010
@@ -21,44 +21,67 @@ import org.apache.thrift.protocol.*;
 public class Index implements TBase, java.io.Serializable, Cloneable {
   private static final TStruct STRUCT_DESC = new TStruct("Index");
   private static final TField INDEX_NAME_FIELD_DESC = new TField("indexName", TType.STRING, (short)1);
-  private static final TField INDEX_TYPE_FIELD_DESC = new TField("indexType", TType.I32, (short)2);
-  private static final TField TABLE_NAME_FIELD_DESC = new TField("tableName", TType.STRING, (short)3);
-  private static final TField DB_NAME_FIELD_DESC = new TField("dbName", TType.STRING, (short)4);
-  private static final TField COL_NAMES_FIELD_DESC = new TField("colNames", TType.LIST, (short)5);
-  private static final TField PART_NAME_FIELD_DESC = new TField("partName", TType.STRING, (short)6);
+  private static final TField INDEX_HANDLER_CLASS_FIELD_DESC = new TField("indexHandlerClass", TType.STRING, (short)2);
+  private static final TField DB_NAME_FIELD_DESC = new TField("dbName", TType.STRING, (short)3);
+  private static final TField ORIG_TABLE_NAME_FIELD_DESC = new TField("origTableName", TType.STRING, (short)4);
+  private static final TField CREATE_TIME_FIELD_DESC = new TField("createTime", TType.I32, (short)5);
+  private static final TField LAST_ACCESS_TIME_FIELD_DESC = new TField("lastAccessTime", TType.I32, (short)6);
+  private static final TField INDEX_TABLE_NAME_FIELD_DESC = new TField("indexTableName", TType.STRING, (short)7);
+  private static final TField SD_FIELD_DESC = new TField("sd", TType.STRUCT, (short)8);
+  private static final TField PARAMETERS_FIELD_DESC = new TField("parameters", TType.MAP, (short)9);
+  private static final TField DEFERRED_REBUILD_FIELD_DESC = new TField("deferredRebuild", TType.BOOL, (short)10);
 
   private String indexName;
   public static final int INDEXNAME = 1;
-  private int indexType;
-  public static final int INDEXTYPE = 2;
-  private String tableName;
-  public static final int TABLENAME = 3;
+  private String indexHandlerClass;
+  public static final int INDEXHANDLERCLASS = 2;
   private String dbName;
-  public static final int DBNAME = 4;
-  private List<String> colNames;
-  public static final int COLNAMES = 5;
-  private String partName;
-  public static final int PARTNAME = 6;
+  public static final int DBNAME = 3;
+  private String origTableName;
+  public static final int ORIGTABLENAME = 4;
+  private int createTime;
+  public static final int CREATETIME = 5;
+  private int lastAccessTime;
+  public static final int LASTACCESSTIME = 6;
+  private String indexTableName;
+  public static final int INDEXTABLENAME = 7;
+  private StorageDescriptor sd;
+  public static final int SD = 8;
+  private Map<String,String> parameters;
+  public static final int PARAMETERS = 9;
+  private boolean deferredRebuild;
+  public static final int DEFERREDREBUILD = 10;
 
   private final Isset __isset = new Isset();
   private static final class Isset implements java.io.Serializable {
-    public boolean indexType = false;
+    public boolean createTime = false;
+    public boolean lastAccessTime = false;
+    public boolean deferredRebuild = false;
   }
 
   public static final Map<Integer, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new HashMap<Integer, FieldMetaData>() {{
     put(INDEXNAME, new FieldMetaData("indexName", TFieldRequirementType.DEFAULT, 
         new FieldValueMetaData(TType.STRING)));
-    put(INDEXTYPE, new FieldMetaData("indexType", TFieldRequirementType.DEFAULT, 
-        new FieldValueMetaData(TType.I32)));
-    put(TABLENAME, new FieldMetaData("tableName", TFieldRequirementType.DEFAULT, 
+    put(INDEXHANDLERCLASS, new FieldMetaData("indexHandlerClass", TFieldRequirementType.DEFAULT, 
         new FieldValueMetaData(TType.STRING)));
     put(DBNAME, new FieldMetaData("dbName", TFieldRequirementType.DEFAULT, 
         new FieldValueMetaData(TType.STRING)));
-    put(COLNAMES, new FieldMetaData("colNames", TFieldRequirementType.DEFAULT, 
-        new ListMetaData(TType.LIST, 
-            new FieldValueMetaData(TType.STRING))));
-    put(PARTNAME, new FieldMetaData("partName", TFieldRequirementType.DEFAULT, 
+    put(ORIGTABLENAME, new FieldMetaData("origTableName", TFieldRequirementType.DEFAULT, 
+        new FieldValueMetaData(TType.STRING)));
+    put(CREATETIME, new FieldMetaData("createTime", TFieldRequirementType.DEFAULT, 
+        new FieldValueMetaData(TType.I32)));
+    put(LASTACCESSTIME, new FieldMetaData("lastAccessTime", TFieldRequirementType.DEFAULT, 
+        new FieldValueMetaData(TType.I32)));
+    put(INDEXTABLENAME, new FieldMetaData("indexTableName", TFieldRequirementType.DEFAULT, 
         new FieldValueMetaData(TType.STRING)));
+    put(SD, new FieldMetaData("sd", TFieldRequirementType.DEFAULT, 
+        new StructMetaData(TType.STRUCT, StorageDescriptor.class)));
+    put(PARAMETERS, new FieldMetaData("parameters", TFieldRequirementType.DEFAULT, 
+        new MapMetaData(TType.MAP, 
+            new FieldValueMetaData(TType.STRING), 
+            new FieldValueMetaData(TType.STRING))));
+    put(DEFERREDREBUILD, new FieldMetaData("deferredRebuild", TFieldRequirementType.DEFAULT, 
+        new FieldValueMetaData(TType.BOOL)));
   }});
 
   static {
@@ -70,20 +93,30 @@ public class Index implements TBase, jav
 
   public Index(
     String indexName,
-    int indexType,
-    String tableName,
+    String indexHandlerClass,
     String dbName,
-    List<String> colNames,
-    String partName)
+    String origTableName,
+    int createTime,
+    int lastAccessTime,
+    String indexTableName,
+    StorageDescriptor sd,
+    Map<String,String> parameters,
+    boolean deferredRebuild)
   {
     this();
     this.indexName = indexName;
-    this.indexType = indexType;
-    this.__isset.indexType = true;
-    this.tableName = tableName;
+    this.indexHandlerClass = indexHandlerClass;
     this.dbName = dbName;
-    this.colNames = colNames;
-    this.partName = partName;
+    this.origTableName = origTableName;
+    this.createTime = createTime;
+    this.__isset.createTime = true;
+    this.lastAccessTime = lastAccessTime;
+    this.__isset.lastAccessTime = true;
+    this.indexTableName = indexTableName;
+    this.sd = sd;
+    this.parameters = parameters;
+    this.deferredRebuild = deferredRebuild;
+    this.__isset.deferredRebuild = true;
   }
 
   /**
@@ -93,24 +126,42 @@ public class Index implements TBase, jav
     if (other.isSetIndexName()) {
       this.indexName = other.indexName;
     }
-    __isset.indexType = other.__isset.indexType;
-    this.indexType = other.indexType;
-    if (other.isSetTableName()) {
-      this.tableName = other.tableName;
+    if (other.isSetIndexHandlerClass()) {
+      this.indexHandlerClass = other.indexHandlerClass;
     }
     if (other.isSetDbName()) {
       this.dbName = other.dbName;
     }
-    if (other.isSetColNames()) {
-      List<String> __this__colNames = new ArrayList<String>();
-      for (String other_element : other.colNames) {
-        __this__colNames.add(other_element);
-      }
-      this.colNames = __this__colNames;
+    if (other.isSetOrigTableName()) {
+      this.origTableName = other.origTableName;
+    }
+    __isset.createTime = other.__isset.createTime;
+    this.createTime = other.createTime;
+    __isset.lastAccessTime = other.__isset.lastAccessTime;
+    this.lastAccessTime = other.lastAccessTime;
+    if (other.isSetIndexTableName()) {
+      this.indexTableName = other.indexTableName;
+    }
+    if (other.isSetSd()) {
+      this.sd = new StorageDescriptor(other.sd);
     }
-    if (other.isSetPartName()) {
-      this.partName = other.partName;
+    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);
+      }
+      this.parameters = __this__parameters;
     }
+    __isset.deferredRebuild = other.__isset.deferredRebuild;
+    this.deferredRebuild = other.deferredRebuild;
   }
 
   @Override
@@ -135,39 +186,21 @@ public class Index implements TBase, jav
     return this.indexName != null;
   }
 
-  public int getIndexType() {
-    return this.indexType;
-  }
-
-  public void setIndexType(int indexType) {
-    this.indexType = indexType;
-    this.__isset.indexType = true;
-  }
-
-  public void unsetIndexType() {
-    this.__isset.indexType = false;
-  }
-
-  // Returns true if field indexType is set (has been asigned a value) and false otherwise
-  public boolean isSetIndexType() {
-    return this.__isset.indexType;
-  }
-
-  public String getTableName() {
-    return this.tableName;
+  public String getIndexHandlerClass() {
+    return this.indexHandlerClass;
   }
 
-  public void setTableName(String tableName) {
-    this.tableName = tableName;
+  public void setIndexHandlerClass(String indexHandlerClass) {
+    this.indexHandlerClass = indexHandlerClass;
   }
 
-  public void unsetTableName() {
-    this.tableName = null;
+  public void unsetIndexHandlerClass() {
+    this.indexHandlerClass = null;
   }
 
-  // Returns true if field tableName is set (has been asigned a value) and false otherwise
-  public boolean isSetTableName() {
-    return this.tableName != null;
+  // Returns true if field indexHandlerClass is set (has been asigned a value) and false otherwise
+  public boolean isSetIndexHandlerClass() {
+    return this.indexHandlerClass != null;
   }
 
   public String getDbName() {
@@ -187,53 +220,137 @@ public class Index implements TBase, jav
     return this.dbName != null;
   }
 
-  public int getColNamesSize() {
-    return (this.colNames == null) ? 0 : this.colNames.size();
+  public String getOrigTableName() {
+    return this.origTableName;
+  }
+
+  public void setOrigTableName(String origTableName) {
+    this.origTableName = origTableName;
+  }
+
+  public void unsetOrigTableName() {
+    this.origTableName = null;
+  }
+
+  // Returns true if field origTableName is set (has been asigned a value) and false otherwise
+  public boolean isSetOrigTableName() {
+    return this.origTableName != null;
+  }
+
+  public int getCreateTime() {
+    return this.createTime;
+  }
+
+  public void setCreateTime(int createTime) {
+    this.createTime = createTime;
+    this.__isset.createTime = true;
+  }
+
+  public void unsetCreateTime() {
+    this.__isset.createTime = false;
+  }
+
+  // Returns true if field createTime is set (has been asigned a value) and false otherwise
+  public boolean isSetCreateTime() {
+    return this.__isset.createTime;
+  }
+
+  public int getLastAccessTime() {
+    return this.lastAccessTime;
+  }
+
+  public void setLastAccessTime(int lastAccessTime) {
+    this.lastAccessTime = lastAccessTime;
+    this.__isset.lastAccessTime = true;
+  }
+
+  public void unsetLastAccessTime() {
+    this.__isset.lastAccessTime = false;
+  }
+
+  // Returns true if field lastAccessTime is set (has been asigned a value) and false otherwise
+  public boolean isSetLastAccessTime() {
+    return this.__isset.lastAccessTime;
+  }
+
+  public String getIndexTableName() {
+    return this.indexTableName;
+  }
+
+  public void setIndexTableName(String indexTableName) {
+    this.indexTableName = indexTableName;
+  }
+
+  public void unsetIndexTableName() {
+    this.indexTableName = null;
+  }
+
+  // Returns true if field indexTableName is set (has been asigned a value) and false otherwise
+  public boolean isSetIndexTableName() {
+    return this.indexTableName != null;
+  }
+
+  public StorageDescriptor getSd() {
+    return this.sd;
   }
 
-  public java.util.Iterator<String> getColNamesIterator() {
-    return (this.colNames == null) ? null : this.colNames.iterator();
+  public void setSd(StorageDescriptor sd) {
+    this.sd = sd;
   }
 
-  public void addToColNames(String elem) {
-    if (this.colNames == null) {
-      this.colNames = new ArrayList<String>();
+  public void unsetSd() {
+    this.sd = null;
+  }
+
+  // Returns true if field sd is set (has been asigned a value) and false otherwise
+  public boolean isSetSd() {
+    return this.sd != null;
+  }
+
+  public int getParametersSize() {
+    return (this.parameters == null) ? 0 : this.parameters.size();
+  }
+
+  public void putToParameters(String key, String val) {
+    if (this.parameters == null) {
+      this.parameters = new HashMap<String,String>();
     }
-    this.colNames.add(elem);
+    this.parameters.put(key, val);
   }
 
-  public List<String> getColNames() {
-    return this.colNames;
+  public Map<String,String> getParameters() {
+    return this.parameters;
   }
 
-  public void setColNames(List<String> colNames) {
-    this.colNames = colNames;
+  public void setParameters(Map<String,String> parameters) {
+    this.parameters = parameters;
   }
 
-  public void unsetColNames() {
-    this.colNames = null;
+  public void unsetParameters() {
+    this.parameters = null;
   }
 
-  // Returns true if field colNames is set (has been asigned a value) and false otherwise
-  public boolean isSetColNames() {
-    return this.colNames != null;
+  // Returns true if field parameters is set (has been asigned a value) and false otherwise
+  public boolean isSetParameters() {
+    return this.parameters != null;
   }
 
-  public String getPartName() {
-    return this.partName;
+  public boolean isDeferredRebuild() {
+    return this.deferredRebuild;
   }
 
-  public void setPartName(String partName) {
-    this.partName = partName;
+  public void setDeferredRebuild(boolean deferredRebuild) {
+    this.deferredRebuild = deferredRebuild;
+    this.__isset.deferredRebuild = true;
   }
 
-  public void unsetPartName() {
-    this.partName = null;
+  public void unsetDeferredRebuild() {
+    this.__isset.deferredRebuild = false;
   }
 
-  // Returns true if field partName is set (has been asigned a value) and false otherwise
-  public boolean isSetPartName() {
-    return this.partName != null;
+  // Returns true if field deferredRebuild is set (has been asigned a value) and false otherwise
+  public boolean isSetDeferredRebuild() {
+    return this.__isset.deferredRebuild;
   }
 
   public void setFieldValue(int fieldID, Object value) {
@@ -246,43 +363,75 @@ public class Index implements TBase, jav
       }
       break;
 
-    case INDEXTYPE:
+    case INDEXHANDLERCLASS:
       if (value == null) {
-        unsetIndexType();
+        unsetIndexHandlerClass();
       } else {
-        setIndexType((Integer)value);
+        setIndexHandlerClass((String)value);
       }
       break;
 
-    case TABLENAME:
+    case DBNAME:
       if (value == null) {
-        unsetTableName();
+        unsetDbName();
       } else {
-        setTableName((String)value);
+        setDbName((String)value);
       }
       break;
 
-    case DBNAME:
+    case ORIGTABLENAME:
       if (value == null) {
-        unsetDbName();
+        unsetOrigTableName();
       } else {
-        setDbName((String)value);
+        setOrigTableName((String)value);
+      }
+      break;
+
+    case CREATETIME:
+      if (value == null) {
+        unsetCreateTime();
+      } else {
+        setCreateTime((Integer)value);
+      }
+      break;
+
+    case LASTACCESSTIME:
+      if (value == null) {
+        unsetLastAccessTime();
+      } else {
+        setLastAccessTime((Integer)value);
+      }
+      break;
+
+    case INDEXTABLENAME:
+      if (value == null) {
+        unsetIndexTableName();
+      } else {
+        setIndexTableName((String)value);
+      }
+      break;
+
+    case SD:
+      if (value == null) {
+        unsetSd();
+      } else {
+        setSd((StorageDescriptor)value);
       }
       break;
 
-    case COLNAMES:
+    case PARAMETERS:
       if (value == null) {
-        unsetColNames();
+        unsetParameters();
       } else {
-        setColNames((List<String>)value);
+        setParameters((Map<String,String>)value);
       }
       break;
 
-    case PARTNAME:
+    case DEFERREDREBUILD:
       if (value == null) {
-        unsetPartName();
+        unsetDeferredRebuild();
       } else {
-        setPartName((String)value);
+        setDeferredRebuild((Boolean)value);
       }
       break;
 
@@ -296,20 +445,32 @@ public class Index implements TBase, jav
     case INDEXNAME:
       return getIndexName();
 
-    case INDEXTYPE:
-      return new Integer(getIndexType());
-
-    case TABLENAME:
-      return getTableName();
+    case INDEXHANDLERCLASS:
+      return getIndexHandlerClass();
 
     case DBNAME:
       return getDbName();
 
-    case COLNAMES:
-      return getColNames();
+    case ORIGTABLENAME:
+      return getOrigTableName();
+
+    case CREATETIME:
+      return new Integer(getCreateTime());
+
+    case LASTACCESSTIME:
+      return new Integer(getLastAccessTime());
+
+    case INDEXTABLENAME:
+      return getIndexTableName();
+
+    case SD:
+      return getSd();
+
+    case PARAMETERS:
+      return getParameters();
 
-    case PARTNAME:
-      return getPartName();
+    case DEFERREDREBUILD:
+      return new Boolean(isDeferredRebuild());
 
     default:
       throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
@@ -321,16 +482,24 @@ public class Index implements TBase, jav
     switch (fieldID) {
     case INDEXNAME:
       return isSetIndexName();
-    case INDEXTYPE:
-      return isSetIndexType();
-    case TABLENAME:
-      return isSetTableName();
+    case INDEXHANDLERCLASS:
+      return isSetIndexHandlerClass();
     case DBNAME:
       return isSetDbName();
-    case COLNAMES:
-      return isSetColNames();
-    case PARTNAME:
-      return isSetPartName();
+    case ORIGTABLENAME:
+      return isSetOrigTableName();
+    case CREATETIME:
+      return isSetCreateTime();
+    case LASTACCESSTIME:
+      return isSetLastAccessTime();
+    case INDEXTABLENAME:
+      return isSetIndexTableName();
+    case SD:
+      return isSetSd();
+    case PARAMETERS:
+      return isSetParameters();
+    case DEFERREDREBUILD:
+      return isSetDeferredRebuild();
     default:
       throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
     }
@@ -358,21 +527,12 @@ public class Index implements TBase, jav
         return false;
     }
 
-    boolean this_present_indexType = true;
-    boolean that_present_indexType = true;
-    if (this_present_indexType || that_present_indexType) {
-      if (!(this_present_indexType && that_present_indexType))
+    boolean this_present_indexHandlerClass = true && this.isSetIndexHandlerClass();
+    boolean that_present_indexHandlerClass = true && that.isSetIndexHandlerClass();
+    if (this_present_indexHandlerClass || that_present_indexHandlerClass) {
+      if (!(this_present_indexHandlerClass && that_present_indexHandlerClass))
         return false;
-      if (this.indexType != that.indexType)
-        return false;
-    }
-
-    boolean this_present_tableName = true && this.isSetTableName();
-    boolean that_present_tableName = true && that.isSetTableName();
-    if (this_present_tableName || that_present_tableName) {
-      if (!(this_present_tableName && that_present_tableName))
-        return false;
-      if (!this.tableName.equals(that.tableName))
+      if (!this.indexHandlerClass.equals(that.indexHandlerClass))
         return false;
     }
 
@@ -385,21 +545,66 @@ public class Index implements TBase, jav
         return false;
     }
 
-    boolean this_present_colNames = true && this.isSetColNames();
-    boolean that_present_colNames = true && that.isSetColNames();
-    if (this_present_colNames || that_present_colNames) {
-      if (!(this_present_colNames && that_present_colNames))
+    boolean this_present_origTableName = true && this.isSetOrigTableName();
+    boolean that_present_origTableName = true && that.isSetOrigTableName();
+    if (this_present_origTableName || that_present_origTableName) {
+      if (!(this_present_origTableName && that_present_origTableName))
+        return false;
+      if (!this.origTableName.equals(that.origTableName))
+        return false;
+    }
+
+    boolean this_present_createTime = true;
+    boolean that_present_createTime = true;
+    if (this_present_createTime || that_present_createTime) {
+      if (!(this_present_createTime && that_present_createTime))
+        return false;
+      if (this.createTime != that.createTime)
+        return false;
+    }
+
+    boolean this_present_lastAccessTime = true;
+    boolean that_present_lastAccessTime = true;
+    if (this_present_lastAccessTime || that_present_lastAccessTime) {
+      if (!(this_present_lastAccessTime && that_present_lastAccessTime))
+        return false;
+      if (this.lastAccessTime != that.lastAccessTime)
+        return false;
+    }
+
+    boolean this_present_indexTableName = true && this.isSetIndexTableName();
+    boolean that_present_indexTableName = true && that.isSetIndexTableName();
+    if (this_present_indexTableName || that_present_indexTableName) {
+      if (!(this_present_indexTableName && that_present_indexTableName))
         return false;
-      if (!this.colNames.equals(that.colNames))
+      if (!this.indexTableName.equals(that.indexTableName))
         return false;
     }
 
-    boolean this_present_partName = true && this.isSetPartName();
-    boolean that_present_partName = true && that.isSetPartName();
-    if (this_present_partName || that_present_partName) {
-      if (!(this_present_partName && that_present_partName))
+    boolean this_present_sd = true && this.isSetSd();
+    boolean that_present_sd = true && that.isSetSd();
+    if (this_present_sd || that_present_sd) {
+      if (!(this_present_sd && that_present_sd))
         return false;
-      if (!this.partName.equals(that.partName))
+      if (!this.sd.equals(that.sd))
+        return false;
+    }
+
+    boolean this_present_parameters = true && this.isSetParameters();
+    boolean that_present_parameters = true && that.isSetParameters();
+    if (this_present_parameters || that_present_parameters) {
+      if (!(this_present_parameters && that_present_parameters))
+        return false;
+      if (!this.parameters.equals(that.parameters))
+        return false;
+    }
+
+    boolean this_present_deferredRebuild = true;
+    boolean that_present_deferredRebuild = true;
+    if (this_present_deferredRebuild || that_present_deferredRebuild) {
+      if (!(this_present_deferredRebuild && that_present_deferredRebuild))
+        return false;
+      if (this.deferredRebuild != that.deferredRebuild)
         return false;
     }
 
@@ -429,48 +634,81 @@ public class Index implements TBase, jav
             TProtocolUtil.skip(iprot, field.type);
           }
           break;
-        case INDEXTYPE:
-          if (field.type == TType.I32) {
-            this.indexType = iprot.readI32();
-            this.__isset.indexType = true;
+        case INDEXHANDLERCLASS:
+          if (field.type == TType.STRING) {
+            this.indexHandlerClass = iprot.readString();
           } else { 
             TProtocolUtil.skip(iprot, field.type);
           }
           break;
-        case TABLENAME:
+        case DBNAME:
           if (field.type == TType.STRING) {
-            this.tableName = iprot.readString();
+            this.dbName = iprot.readString();
           } else { 
             TProtocolUtil.skip(iprot, field.type);
           }
           break;
-        case DBNAME:
+        case ORIGTABLENAME:
           if (field.type == TType.STRING) {
-            this.dbName = iprot.readString();
+            this.origTableName = iprot.readString();
+          } else { 
+            TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case CREATETIME:
+          if (field.type == TType.I32) {
+            this.createTime = iprot.readI32();
+            this.__isset.createTime = true;
+          } else { 
+            TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case LASTACCESSTIME:
+          if (field.type == TType.I32) {
+            this.lastAccessTime = iprot.readI32();
+            this.__isset.lastAccessTime = true;
+          } else { 
+            TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case INDEXTABLENAME:
+          if (field.type == TType.STRING) {
+            this.indexTableName = iprot.readString();
+          } else { 
+            TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case SD:
+          if (field.type == TType.STRUCT) {
+            this.sd = new StorageDescriptor();
+            this.sd.read(iprot);
           } else { 
             TProtocolUtil.skip(iprot, field.type);
           }
           break;
-        case COLNAMES:
-          if (field.type == TType.LIST) {
+        case PARAMETERS:
+          if (field.type == TType.MAP) {
             {
-              TList _list44 = iprot.readListBegin();
-              this.colNames = new ArrayList<String>(_list44.size);
-              for (int _i45 = 0; _i45 < _list44.size; ++_i45)
+              TMap _map44 = iprot.readMapBegin();
+              this.parameters = new HashMap<String,String>(2*_map44.size);
+              for (int _i45 = 0; _i45 < _map44.size; ++_i45)
               {
-                String _elem46;
-                _elem46 = iprot.readString();
-                this.colNames.add(_elem46);
+                String _key46;
+                String _val47;
+                _key46 = iprot.readString();
+                _val47 = iprot.readString();
+                this.parameters.put(_key46, _val47);
               }
-              iprot.readListEnd();
+              iprot.readMapEnd();
             }
           } else { 
             TProtocolUtil.skip(iprot, field.type);
           }
           break;
-        case PARTNAME:
-          if (field.type == TType.STRING) {
-            this.partName = iprot.readString();
+        case DEFERREDREBUILD:
+          if (field.type == TType.BOOL) {
+            this.deferredRebuild = iprot.readBool();
+            this.__isset.deferredRebuild = true;
           } else { 
             TProtocolUtil.skip(iprot, field.type);
           }
@@ -495,12 +733,9 @@ public class Index implements TBase, jav
       oprot.writeString(this.indexName);
       oprot.writeFieldEnd();
     }
-    oprot.writeFieldBegin(INDEX_TYPE_FIELD_DESC);
-    oprot.writeI32(this.indexType);
-    oprot.writeFieldEnd();
-    if (this.tableName != null) {
-      oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
-      oprot.writeString(this.tableName);
+    if (this.indexHandlerClass != null) {
+      oprot.writeFieldBegin(INDEX_HANDLER_CLASS_FIELD_DESC);
+      oprot.writeString(this.indexHandlerClass);
       oprot.writeFieldEnd();
     }
     if (this.dbName != null) {
@@ -508,22 +743,42 @@ public class Index implements TBase, jav
       oprot.writeString(this.dbName);
       oprot.writeFieldEnd();
     }
-    if (this.colNames != null) {
-      oprot.writeFieldBegin(COL_NAMES_FIELD_DESC);
+    if (this.origTableName != null) {
+      oprot.writeFieldBegin(ORIG_TABLE_NAME_FIELD_DESC);
+      oprot.writeString(this.origTableName);
+      oprot.writeFieldEnd();
+    }
+    oprot.writeFieldBegin(CREATE_TIME_FIELD_DESC);
+    oprot.writeI32(this.createTime);
+    oprot.writeFieldEnd();
+    oprot.writeFieldBegin(LAST_ACCESS_TIME_FIELD_DESC);
+    oprot.writeI32(this.lastAccessTime);
+    oprot.writeFieldEnd();
+    if (this.indexTableName != null) {
+      oprot.writeFieldBegin(INDEX_TABLE_NAME_FIELD_DESC);
+      oprot.writeString(this.indexTableName);
+      oprot.writeFieldEnd();
+    }
+    if (this.sd != null) {
+      oprot.writeFieldBegin(SD_FIELD_DESC);
+      this.sd.write(oprot);
+      oprot.writeFieldEnd();
+    }
+    if (this.parameters != null) {
+      oprot.writeFieldBegin(PARAMETERS_FIELD_DESC);
       {
-        oprot.writeListBegin(new TList(TType.STRING, this.colNames.size()));
-        for (String _iter47 : this.colNames)        {
-          oprot.writeString(_iter47);
+        oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.parameters.size()));
+        for (Map.Entry<String, String> _iter48 : this.parameters.entrySet())        {
+          oprot.writeString(_iter48.getKey());
+          oprot.writeString(_iter48.getValue());
         }
-        oprot.writeListEnd();
+        oprot.writeMapEnd();
       }
       oprot.writeFieldEnd();
     }
-    if (this.partName != null) {
-      oprot.writeFieldBegin(PART_NAME_FIELD_DESC);
-      oprot.writeString(this.partName);
-      oprot.writeFieldEnd();
-    }
+    oprot.writeFieldBegin(DEFERRED_REBUILD_FIELD_DESC);
+    oprot.writeBool(this.deferredRebuild);
+    oprot.writeFieldEnd();
     oprot.writeFieldStop();
     oprot.writeStructEnd();
   }
@@ -541,15 +796,11 @@ public class Index implements TBase, jav
     }
     first = false;
     if (!first) sb.append(", ");
-    sb.append("indexType:");
-    sb.append(this.indexType);
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("tableName:");
-    if (this.tableName == null) {
+    sb.append("indexHandlerClass:");
+    if (this.indexHandlerClass == null) {
       sb.append("null");
     } else {
-      sb.append(this.tableName);
+      sb.append(this.indexHandlerClass);
     }
     first = false;
     if (!first) sb.append(", ");
@@ -561,21 +812,49 @@ public class Index implements TBase, jav
     }
     first = false;
     if (!first) sb.append(", ");
-    sb.append("colNames:");
-    if (this.colNames == null) {
+    sb.append("origTableName:");
+    if (this.origTableName == null) {
       sb.append("null");
     } else {
-      sb.append(this.colNames);
+      sb.append(this.origTableName);
     }
     first = false;
     if (!first) sb.append(", ");
-    sb.append("partName:");
-    if (this.partName == null) {
+    sb.append("createTime:");
+    sb.append(this.createTime);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("lastAccessTime:");
+    sb.append(this.lastAccessTime);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("indexTableName:");
+    if (this.indexTableName == null) {
       sb.append("null");
     } else {
-      sb.append(this.partName);
+      sb.append(this.indexTableName);
     }
     first = false;
+    if (!first) sb.append(", ");
+    sb.append("sd:");
+    if (this.sd == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.sd);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("parameters:");
+    if (this.parameters == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.parameters);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("deferredRebuild:");
+    sb.append(this.deferredRebuild);
+    first = false;
     sb.append(")");
     return sb.toString();
   }

Modified: hadoop/hive/trunk/metastore/src/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/metastore/src/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java?rev=980659&r1=980658&r2=980659&view=diff
==============================================================================
--- hadoop/hive/trunk/metastore/src/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java (original)
+++ hadoop/hive/trunk/metastore/src/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java Fri Jul 30 06:40:04 2010
@@ -252,14 +252,14 @@ public class Schema implements TBase, ja
         case FIELDSCHEMAS:
           if (field.type == TType.LIST) {
             {
-              TList _list48 = iprot.readListBegin();
-              this.fieldSchemas = new ArrayList<FieldSchema>(_list48.size);
-              for (int _i49 = 0; _i49 < _list48.size; ++_i49)
+              TList _list49 = iprot.readListBegin();
+              this.fieldSchemas = new ArrayList<FieldSchema>(_list49.size);
+              for (int _i50 = 0; _i50 < _list49.size; ++_i50)
               {
-                FieldSchema _elem50;
-                _elem50 = new FieldSchema();
-                _elem50.read(iprot);
-                this.fieldSchemas.add(_elem50);
+                FieldSchema _elem51;
+                _elem51 = new FieldSchema();
+                _elem51.read(iprot);
+                this.fieldSchemas.add(_elem51);
               }
               iprot.readListEnd();
             }
@@ -270,15 +270,15 @@ public class Schema implements TBase, ja
         case PROPERTIES:
           if (field.type == TType.MAP) {
             {
-              TMap _map51 = iprot.readMapBegin();
-              this.properties = new HashMap<String,String>(2*_map51.size);
-              for (int _i52 = 0; _i52 < _map51.size; ++_i52)
+              TMap _map52 = iprot.readMapBegin();
+              this.properties = new HashMap<String,String>(2*_map52.size);
+              for (int _i53 = 0; _i53 < _map52.size; ++_i53)
               {
-                String _key53;
-                String _val54;
-                _key53 = iprot.readString();
-                _val54 = iprot.readString();
-                this.properties.put(_key53, _val54);
+                String _key54;
+                String _val55;
+                _key54 = iprot.readString();
+                _val55 = iprot.readString();
+                this.properties.put(_key54, _val55);
               }
               iprot.readMapEnd();
             }
@@ -305,8 +305,8 @@ public class Schema implements TBase, ja
       oprot.writeFieldBegin(FIELD_SCHEMAS_FIELD_DESC);
       {
         oprot.writeListBegin(new TList(TType.STRUCT, this.fieldSchemas.size()));
-        for (FieldSchema _iter55 : this.fieldSchemas)        {
-          _iter55.write(oprot);
+        for (FieldSchema _iter56 : this.fieldSchemas)        {
+          _iter56.write(oprot);
         }
         oprot.writeListEnd();
       }
@@ -316,9 +316,9 @@ public class Schema implements TBase, ja
       oprot.writeFieldBegin(PROPERTIES_FIELD_DESC);
       {
         oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.properties.size()));
-        for (Map.Entry<String, String> _iter56 : this.properties.entrySet())        {
-          oprot.writeString(_iter56.getKey());
-          oprot.writeString(_iter56.getValue());
+        for (Map.Entry<String, String> _iter57 : this.properties.entrySet())        {
+          oprot.writeString(_iter57.getKey());
+          oprot.writeString(_iter57.getValue());
         }
         oprot.writeMapEnd();
       }