incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [51/51] [abbrv] Massive changes to the the thrift API. Getting closer to the final version, this commit also removes the controller from the architecture.
Date Tue, 11 Dec 2012 02:21:01 GMT
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/aee531c2/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/TableStats.java
----------------------------------------------------------------------
diff --git a/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/TableStats.java
b/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/TableStats.java
index dca3f1d..d21538a 100644
--- a/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/TableStats.java
+++ b/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/TableStats.java
@@ -55,11 +55,9 @@ import org.slf4j.LoggerFactory;
 public class TableStats implements org.apache.thrift.TBase<TableStats, TableStats._Fields>,
java.io.Serializable, Cloneable {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TableStats");
 
-  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 BYTES_FIELD_DESC = new org.apache.thrift.protocol.TField("bytes",
org.apache.thrift.protocol.TType.I64, (short)2);
-  private static final org.apache.thrift.protocol.TField RECORD_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("recordCount",
org.apache.thrift.protocol.TType.I64, (short)3);
-  private static final org.apache.thrift.protocol.TField ROW_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("rowCount",
org.apache.thrift.protocol.TType.I64, (short)4);
-  private static final org.apache.thrift.protocol.TField QUERIES_FIELD_DESC = new org.apache.thrift.protocol.TField("queries",
org.apache.thrift.protocol.TType.I64, (short)5);
+  private static final org.apache.thrift.protocol.TField BYTES_FIELD_DESC = new org.apache.thrift.protocol.TField("bytes",
org.apache.thrift.protocol.TType.I64, (short)1);
+  private static final org.apache.thrift.protocol.TField DOCUMENT_COUNT_FIELD_DESC = new
org.apache.thrift.protocol.TField("documentCount", org.apache.thrift.protocol.TType.I64, (short)2);
+  private static final org.apache.thrift.protocol.TField QUERIES_FIELD_DESC = new org.apache.thrift.protocol.TField("queries",
org.apache.thrift.protocol.TType.I64, (short)3);
 
   private static final Map<Class<? extends IScheme>, SchemeFactory> schemes =
new HashMap<Class<? extends IScheme>, SchemeFactory>();
   static {
@@ -70,19 +68,11 @@ public class TableStats implements org.apache.thrift.TBase<TableStats,
TableStat
   /**
    * 
    */
-  public String tableName; // required
-  /**
-   * 
-   */
   public long bytes; // required
   /**
    * 
    */
-  public long recordCount; // required
-  /**
-   * 
-   */
-  public long rowCount; // required
+  public long documentCount; // required
   /**
    * 
    */
@@ -93,23 +83,15 @@ public class TableStats implements org.apache.thrift.TBase<TableStats,
TableStat
     /**
      * 
      */
-    TABLE_NAME((short)1, "tableName"),
+    BYTES((short)1, "bytes"),
     /**
      * 
      */
-    BYTES((short)2, "bytes"),
+    DOCUMENT_COUNT((short)2, "documentCount"),
     /**
      * 
      */
-    RECORD_COUNT((short)3, "recordCount"),
-    /**
-     * 
-     */
-    ROW_COUNT((short)4, "rowCount"),
-    /**
-     * 
-     */
-    QUERIES((short)5, "queries");
+    QUERIES((short)3, "queries");
 
     private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
 
@@ -124,15 +106,11 @@ public class TableStats implements org.apache.thrift.TBase<TableStats,
TableStat
      */
     public static _Fields findByThriftId(int fieldId) {
       switch(fieldId) {
-        case 1: // TABLE_NAME
-          return TABLE_NAME;
-        case 2: // BYTES
+        case 1: // BYTES
           return BYTES;
-        case 3: // RECORD_COUNT
-          return RECORD_COUNT;
-        case 4: // ROW_COUNT
-          return ROW_COUNT;
-        case 5: // QUERIES
+        case 2: // DOCUMENT_COUNT
+          return DOCUMENT_COUNT;
+        case 3: // QUERIES
           return QUERIES;
         default:
           return null;
@@ -175,20 +153,15 @@ public class TableStats implements org.apache.thrift.TBase<TableStats,
TableStat
 
   // isset id assignments
   private static final int __BYTES_ISSET_ID = 0;
-  private static final int __RECORDCOUNT_ISSET_ID = 1;
-  private static final int __ROWCOUNT_ISSET_ID = 2;
-  private static final int __QUERIES_ISSET_ID = 3;
+  private static final int __DOCUMENTCOUNT_ISSET_ID = 1;
+  private static final int __QUERIES_ISSET_ID = 2;
   private byte __isset_bitfield = 0;
   public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
   static {
     Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields,
org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-    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.BYTES, new org.apache.thrift.meta_data.FieldMetaData("bytes", org.apache.thrift.TFieldRequirementType.DEFAULT,

         new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-    tmpMap.put(_Fields.RECORD_COUNT, new org.apache.thrift.meta_data.FieldMetaData("recordCount",
org.apache.thrift.TFieldRequirementType.DEFAULT, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-    tmpMap.put(_Fields.ROW_COUNT, new org.apache.thrift.meta_data.FieldMetaData("rowCount",
org.apache.thrift.TFieldRequirementType.DEFAULT, 
+    tmpMap.put(_Fields.DOCUMENT_COUNT, new org.apache.thrift.meta_data.FieldMetaData("documentCount",
org.apache.thrift.TFieldRequirementType.DEFAULT, 
         new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
     tmpMap.put(_Fields.QUERIES, new org.apache.thrift.meta_data.FieldMetaData("queries",
org.apache.thrift.TFieldRequirementType.DEFAULT, 
         new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
@@ -200,20 +173,15 @@ public class TableStats implements org.apache.thrift.TBase<TableStats,
TableStat
   }
 
   public TableStats(
-    String tableName,
     long bytes,
-    long recordCount,
-    long rowCount,
+    long documentCount,
     long queries)
   {
     this();
-    this.tableName = tableName;
     this.bytes = bytes;
     setBytesIsSet(true);
-    this.recordCount = recordCount;
-    setRecordCountIsSet(true);
-    this.rowCount = rowCount;
-    setRowCountIsSet(true);
+    this.documentCount = documentCount;
+    setDocumentCountIsSet(true);
     this.queries = queries;
     setQueriesIsSet(true);
   }
@@ -223,12 +191,8 @@ public class TableStats implements org.apache.thrift.TBase<TableStats,
TableStat
    */
   public TableStats(TableStats other) {
     __isset_bitfield = other.__isset_bitfield;
-    if (other.isSetTableName()) {
-      this.tableName = other.tableName;
-    }
     this.bytes = other.bytes;
-    this.recordCount = other.recordCount;
-    this.rowCount = other.rowCount;
+    this.documentCount = other.documentCount;
     this.queries = other.queries;
   }
 
@@ -238,13 +202,10 @@ public class TableStats implements org.apache.thrift.TBase<TableStats,
TableStat
 
   @Override
   public void clear() {
-    this.tableName = null;
     setBytesIsSet(false);
     this.bytes = 0;
-    setRecordCountIsSet(false);
-    this.recordCount = 0;
-    setRowCountIsSet(false);
-    this.rowCount = 0;
+    setDocumentCountIsSet(false);
+    this.documentCount = 0;
     setQueriesIsSet(false);
     this.queries = 0;
   }
@@ -252,36 +213,6 @@ public class TableStats implements org.apache.thrift.TBase<TableStats,
TableStat
   /**
    * 
    */
-  public String getTableName() {
-    return this.tableName;
-  }
-
-  /**
-   * 
-   */
-  public TableStats setTableName(String tableName) {
-    this.tableName = tableName;
-    return this;
-  }
-
-  public void unsetTableName() {
-    this.tableName = null;
-  }
-
-  /** Returns true if field tableName is set (has been assigned a value) and false otherwise
*/
-  public boolean isSetTableName() {
-    return this.tableName != null;
-  }
-
-  public void setTableNameIsSet(boolean value) {
-    if (!value) {
-      this.tableName = null;
-    }
-  }
-
-  /**
-   * 
-   */
   public long getBytes() {
     return this.bytes;
   }
@@ -311,59 +242,30 @@ public class TableStats implements org.apache.thrift.TBase<TableStats,
TableStat
   /**
    * 
    */
-  public long getRecordCount() {
-    return this.recordCount;
-  }
-
-  /**
-   * 
-   */
-  public TableStats setRecordCount(long recordCount) {
-    this.recordCount = recordCount;
-    setRecordCountIsSet(true);
-    return this;
-  }
-
-  public void unsetRecordCount() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORDCOUNT_ISSET_ID);
-  }
-
-  /** Returns true if field recordCount is set (has been assigned a value) and false otherwise
*/
-  public boolean isSetRecordCount() {
-    return EncodingUtils.testBit(__isset_bitfield, __RECORDCOUNT_ISSET_ID);
-  }
-
-  public void setRecordCountIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORDCOUNT_ISSET_ID, value);
-  }
-
-  /**
-   * 
-   */
-  public long getRowCount() {
-    return this.rowCount;
+  public long getDocumentCount() {
+    return this.documentCount;
   }
 
   /**
    * 
    */
-  public TableStats setRowCount(long rowCount) {
-    this.rowCount = rowCount;
-    setRowCountIsSet(true);
+  public TableStats setDocumentCount(long documentCount) {
+    this.documentCount = documentCount;
+    setDocumentCountIsSet(true);
     return this;
   }
 
-  public void unsetRowCount() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ROWCOUNT_ISSET_ID);
+  public void unsetDocumentCount() {
+    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DOCUMENTCOUNT_ISSET_ID);
   }
 
-  /** Returns true if field rowCount is set (has been assigned a value) and false otherwise
*/
-  public boolean isSetRowCount() {
-    return EncodingUtils.testBit(__isset_bitfield, __ROWCOUNT_ISSET_ID);
+  /** Returns true if field documentCount is set (has been assigned a value) and false otherwise
*/
+  public boolean isSetDocumentCount() {
+    return EncodingUtils.testBit(__isset_bitfield, __DOCUMENTCOUNT_ISSET_ID);
   }
 
-  public void setRowCountIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ROWCOUNT_ISSET_ID, value);
+  public void setDocumentCountIsSet(boolean value) {
+    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DOCUMENTCOUNT_ISSET_ID, value);
   }
 
   /**
@@ -397,14 +299,6 @@ public class TableStats implements org.apache.thrift.TBase<TableStats,
TableStat
 
   public void setFieldValue(_Fields field, Object value) {
     switch (field) {
-    case TABLE_NAME:
-      if (value == null) {
-        unsetTableName();
-      } else {
-        setTableName((String)value);
-      }
-      break;
-
     case BYTES:
       if (value == null) {
         unsetBytes();
@@ -413,19 +307,11 @@ public class TableStats implements org.apache.thrift.TBase<TableStats,
TableStat
       }
       break;
 
-    case RECORD_COUNT:
+    case DOCUMENT_COUNT:
       if (value == null) {
-        unsetRecordCount();
+        unsetDocumentCount();
       } else {
-        setRecordCount((Long)value);
-      }
-      break;
-
-    case ROW_COUNT:
-      if (value == null) {
-        unsetRowCount();
-      } else {
-        setRowCount((Long)value);
+        setDocumentCount((Long)value);
       }
       break;
 
@@ -442,17 +328,11 @@ public class TableStats implements org.apache.thrift.TBase<TableStats,
TableStat
 
   public Object getFieldValue(_Fields field) {
     switch (field) {
-    case TABLE_NAME:
-      return getTableName();
-
     case BYTES:
       return Long.valueOf(getBytes());
 
-    case RECORD_COUNT:
-      return Long.valueOf(getRecordCount());
-
-    case ROW_COUNT:
-      return Long.valueOf(getRowCount());
+    case DOCUMENT_COUNT:
+      return Long.valueOf(getDocumentCount());
 
     case QUERIES:
       return Long.valueOf(getQueries());
@@ -468,14 +348,10 @@ public class TableStats implements org.apache.thrift.TBase<TableStats,
TableStat
     }
 
     switch (field) {
-    case TABLE_NAME:
-      return isSetTableName();
     case BYTES:
       return isSetBytes();
-    case RECORD_COUNT:
-      return isSetRecordCount();
-    case ROW_COUNT:
-      return isSetRowCount();
+    case DOCUMENT_COUNT:
+      return isSetDocumentCount();
     case QUERIES:
       return isSetQueries();
     }
@@ -495,15 +371,6 @@ public class TableStats implements org.apache.thrift.TBase<TableStats,
TableStat
     if (that == null)
       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))
-        return false;
-    }
-
     boolean this_present_bytes = true;
     boolean that_present_bytes = true;
     if (this_present_bytes || that_present_bytes) {
@@ -513,21 +380,12 @@ public class TableStats implements org.apache.thrift.TBase<TableStats,
TableStat
         return false;
     }
 
-    boolean this_present_recordCount = true;
-    boolean that_present_recordCount = true;
-    if (this_present_recordCount || that_present_recordCount) {
-      if (!(this_present_recordCount && that_present_recordCount))
+    boolean this_present_documentCount = true;
+    boolean that_present_documentCount = true;
+    if (this_present_documentCount || that_present_documentCount) {
+      if (!(this_present_documentCount && that_present_documentCount))
         return false;
-      if (this.recordCount != that.recordCount)
-        return false;
-    }
-
-    boolean this_present_rowCount = true;
-    boolean that_present_rowCount = true;
-    if (this_present_rowCount || that_present_rowCount) {
-      if (!(this_present_rowCount && that_present_rowCount))
-        return false;
-      if (this.rowCount != that.rowCount)
+      if (this.documentCount != that.documentCount)
         return false;
     }
 
@@ -556,16 +414,6 @@ public class TableStats implements org.apache.thrift.TBase<TableStats,
TableStat
     int lastComparison = 0;
     TableStats typedOther = (TableStats)other;
 
-    lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetTableName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
     lastComparison = Boolean.valueOf(isSetBytes()).compareTo(typedOther.isSetBytes());
     if (lastComparison != 0) {
       return lastComparison;
@@ -576,22 +424,12 @@ public class TableStats implements org.apache.thrift.TBase<TableStats,
TableStat
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetRecordCount()).compareTo(typedOther.isSetRecordCount());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetRecordCount()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.recordCount, typedOther.recordCount);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetRowCount()).compareTo(typedOther.isSetRowCount());
+    lastComparison = Boolean.valueOf(isSetDocumentCount()).compareTo(typedOther.isSetDocumentCount());
     if (lastComparison != 0) {
       return lastComparison;
     }
-    if (isSetRowCount()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rowCount, typedOther.rowCount);
+    if (isSetDocumentCount()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.documentCount, typedOther.documentCount);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -626,24 +464,12 @@ public class TableStats implements org.apache.thrift.TBase<TableStats,
TableStat
     StringBuilder sb = new StringBuilder("TableStats(");
     boolean first = true;
 
-    sb.append("tableName:");
-    if (this.tableName == null) {
-      sb.append("null");
-    } else {
-      sb.append(this.tableName);
-    }
-    first = false;
-    if (!first) sb.append(", ");
     sb.append("bytes:");
     sb.append(this.bytes);
     first = false;
     if (!first) sb.append(", ");
-    sb.append("recordCount:");
-    sb.append(this.recordCount);
-    first = false;
-    if (!first) sb.append(", ");
-    sb.append("rowCount:");
-    sb.append(this.rowCount);
+    sb.append("documentCount:");
+    sb.append(this.documentCount);
     first = false;
     if (!first) sb.append(", ");
     sb.append("queries:");
@@ -694,15 +520,7 @@ public class TableStats implements org.apache.thrift.TBase<TableStats,
TableStat
           break;
         }
         switch (schemeField.id) {
-          case 1: // TABLE_NAME
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.tableName = iprot.readString();
-              struct.setTableNameIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 2: // BYTES
+          case 1: // BYTES
             if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
               struct.bytes = iprot.readI64();
               struct.setBytesIsSet(true);
@@ -710,23 +528,15 @@ public class TableStats implements org.apache.thrift.TBase<TableStats,
TableStat
               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
             }
             break;
-          case 3: // RECORD_COUNT
+          case 2: // DOCUMENT_COUNT
             if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
-              struct.recordCount = iprot.readI64();
-              struct.setRecordCountIsSet(true);
+              struct.documentCount = iprot.readI64();
+              struct.setDocumentCountIsSet(true);
             } else { 
               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
             }
             break;
-          case 4: // ROW_COUNT
-            if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
-              struct.rowCount = iprot.readI64();
-              struct.setRowCountIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 5: // QUERIES
+          case 3: // QUERIES
             if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
               struct.queries = iprot.readI64();
               struct.setQueriesIsSet(true);
@@ -749,19 +559,11 @@ public class TableStats implements org.apache.thrift.TBase<TableStats,
TableStat
       struct.validate();
 
       oprot.writeStructBegin(STRUCT_DESC);
-      if (struct.tableName != null) {
-        oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
-        oprot.writeString(struct.tableName);
-        oprot.writeFieldEnd();
-      }
       oprot.writeFieldBegin(BYTES_FIELD_DESC);
       oprot.writeI64(struct.bytes);
       oprot.writeFieldEnd();
-      oprot.writeFieldBegin(RECORD_COUNT_FIELD_DESC);
-      oprot.writeI64(struct.recordCount);
-      oprot.writeFieldEnd();
-      oprot.writeFieldBegin(ROW_COUNT_FIELD_DESC);
-      oprot.writeI64(struct.rowCount);
+      oprot.writeFieldBegin(DOCUMENT_COUNT_FIELD_DESC);
+      oprot.writeI64(struct.documentCount);
       oprot.writeFieldEnd();
       oprot.writeFieldBegin(QUERIES_FIELD_DESC);
       oprot.writeI64(struct.queries);
@@ -784,33 +586,21 @@ public class TableStats implements org.apache.thrift.TBase<TableStats,
TableStat
     public void write(org.apache.thrift.protocol.TProtocol prot, TableStats struct) throws
org.apache.thrift.TException {
       TTupleProtocol oprot = (TTupleProtocol) prot;
       BitSet optionals = new BitSet();
-      if (struct.isSetTableName()) {
+      if (struct.isSetBytes()) {
         optionals.set(0);
       }
-      if (struct.isSetBytes()) {
+      if (struct.isSetDocumentCount()) {
         optionals.set(1);
       }
-      if (struct.isSetRecordCount()) {
-        optionals.set(2);
-      }
-      if (struct.isSetRowCount()) {
-        optionals.set(3);
-      }
       if (struct.isSetQueries()) {
-        optionals.set(4);
-      }
-      oprot.writeBitSet(optionals, 5);
-      if (struct.isSetTableName()) {
-        oprot.writeString(struct.tableName);
+        optionals.set(2);
       }
+      oprot.writeBitSet(optionals, 3);
       if (struct.isSetBytes()) {
         oprot.writeI64(struct.bytes);
       }
-      if (struct.isSetRecordCount()) {
-        oprot.writeI64(struct.recordCount);
-      }
-      if (struct.isSetRowCount()) {
-        oprot.writeI64(struct.rowCount);
+      if (struct.isSetDocumentCount()) {
+        oprot.writeI64(struct.documentCount);
       }
       if (struct.isSetQueries()) {
         oprot.writeI64(struct.queries);
@@ -820,24 +610,16 @@ public class TableStats implements org.apache.thrift.TBase<TableStats,
TableStat
     @Override
     public void read(org.apache.thrift.protocol.TProtocol prot, TableStats struct) throws
org.apache.thrift.TException {
       TTupleProtocol iprot = (TTupleProtocol) prot;
-      BitSet incoming = iprot.readBitSet(5);
+      BitSet incoming = iprot.readBitSet(3);
       if (incoming.get(0)) {
-        struct.tableName = iprot.readString();
-        struct.setTableNameIsSet(true);
-      }
-      if (incoming.get(1)) {
         struct.bytes = iprot.readI64();
         struct.setBytesIsSet(true);
       }
-      if (incoming.get(2)) {
-        struct.recordCount = iprot.readI64();
-        struct.setRecordCountIsSet(true);
-      }
-      if (incoming.get(3)) {
-        struct.rowCount = iprot.readI64();
-        struct.setRowCountIsSet(true);
+      if (incoming.get(1)) {
+        struct.documentCount = iprot.readI64();
+        struct.setDocumentCountIsSet(true);
       }
-      if (incoming.get(4)) {
+      if (incoming.get(2)) {
         struct.queries = iprot.readI64();
         struct.setQueriesIsSet(true);
       }

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/aee531c2/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/TopFieldDocs.java
----------------------------------------------------------------------
diff --git a/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/TopFieldDocs.java
b/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/TopFieldDocs.java
index 9fc57b4..8fa57e0 100644
--- a/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/TopFieldDocs.java
+++ b/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/TopFieldDocs.java
@@ -694,14 +694,14 @@ public class TopFieldDocs implements org.apache.thrift.TBase<TopFieldDocs,
TopFi
           case 3: // SCORE_DOCS
             if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
               {
-                org.apache.thrift.protocol.TList _list108 = iprot.readListBegin();
-                struct.scoreDocs = new ArrayList<ScoreDoc>(_list108.size);
-                for (int _i109 = 0; _i109 < _list108.size; ++_i109)
+                org.apache.thrift.protocol.TList _list88 = iprot.readListBegin();
+                struct.scoreDocs = new ArrayList<ScoreDoc>(_list88.size);
+                for (int _i89 = 0; _i89 < _list88.size; ++_i89)
                 {
-                  ScoreDoc _elem110; // required
-                  _elem110 = new ScoreDoc();
-                  _elem110.read(iprot);
-                  struct.scoreDocs.add(_elem110);
+                  ScoreDoc _elem90; // required
+                  _elem90 = new ScoreDoc();
+                  _elem90.read(iprot);
+                  struct.scoreDocs.add(_elem90);
                 }
                 iprot.readListEnd();
               }
@@ -721,14 +721,14 @@ public class TopFieldDocs implements org.apache.thrift.TBase<TopFieldDocs,
TopFi
           case 5: // FIELDS
             if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
               {
-                org.apache.thrift.protocol.TList _list111 = iprot.readListBegin();
-                struct.fields = new ArrayList<SortField>(_list111.size);
-                for (int _i112 = 0; _i112 < _list111.size; ++_i112)
+                org.apache.thrift.protocol.TList _list91 = iprot.readListBegin();
+                struct.fields = new ArrayList<SortField>(_list91.size);
+                for (int _i92 = 0; _i92 < _list91.size; ++_i92)
                 {
-                  SortField _elem113; // required
-                  _elem113 = new SortField();
-                  _elem113.read(iprot);
-                  struct.fields.add(_elem113);
+                  SortField _elem93; // required
+                  _elem93 = new SortField();
+                  _elem93.read(iprot);
+                  struct.fields.add(_elem93);
                 }
                 iprot.readListEnd();
               }
@@ -762,9 +762,9 @@ public class TopFieldDocs implements org.apache.thrift.TBase<TopFieldDocs,
TopFi
         oprot.writeFieldBegin(SCORE_DOCS_FIELD_DESC);
         {
           oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT,
struct.scoreDocs.size()));
-          for (ScoreDoc _iter114 : struct.scoreDocs)
+          for (ScoreDoc _iter94 : struct.scoreDocs)
           {
-            _iter114.write(oprot);
+            _iter94.write(oprot);
           }
           oprot.writeListEnd();
         }
@@ -777,9 +777,9 @@ public class TopFieldDocs implements org.apache.thrift.TBase<TopFieldDocs,
TopFi
         oprot.writeFieldBegin(FIELDS_FIELD_DESC);
         {
           oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT,
struct.fields.size()));
-          for (SortField _iter115 : struct.fields)
+          for (SortField _iter95 : struct.fields)
           {
-            _iter115.write(oprot);
+            _iter95.write(oprot);
           }
           oprot.writeListEnd();
         }
@@ -828,9 +828,9 @@ public class TopFieldDocs implements org.apache.thrift.TBase<TopFieldDocs,
TopFi
       if (struct.isSetScoreDocs()) {
         {
           oprot.writeI32(struct.scoreDocs.size());
-          for (ScoreDoc _iter116 : struct.scoreDocs)
+          for (ScoreDoc _iter96 : struct.scoreDocs)
           {
-            _iter116.write(oprot);
+            _iter96.write(oprot);
           }
         }
       }
@@ -840,9 +840,9 @@ public class TopFieldDocs implements org.apache.thrift.TBase<TopFieldDocs,
TopFi
       if (struct.isSetFields()) {
         {
           oprot.writeI32(struct.fields.size());
-          for (SortField _iter117 : struct.fields)
+          for (SortField _iter97 : struct.fields)
           {
-            _iter117.write(oprot);
+            _iter97.write(oprot);
           }
         }
       }
@@ -862,14 +862,14 @@ public class TopFieldDocs implements org.apache.thrift.TBase<TopFieldDocs,
TopFi
       }
       if (incoming.get(2)) {
         {
-          org.apache.thrift.protocol.TList _list118 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT,
iprot.readI32());
-          struct.scoreDocs = new ArrayList<ScoreDoc>(_list118.size);
-          for (int _i119 = 0; _i119 < _list118.size; ++_i119)
+          org.apache.thrift.protocol.TList _list98 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT,
iprot.readI32());
+          struct.scoreDocs = new ArrayList<ScoreDoc>(_list98.size);
+          for (int _i99 = 0; _i99 < _list98.size; ++_i99)
           {
-            ScoreDoc _elem120; // required
-            _elem120 = new ScoreDoc();
-            _elem120.read(iprot);
-            struct.scoreDocs.add(_elem120);
+            ScoreDoc _elem100; // required
+            _elem100 = new ScoreDoc();
+            _elem100.read(iprot);
+            struct.scoreDocs.add(_elem100);
           }
         }
         struct.setScoreDocsIsSet(true);
@@ -880,14 +880,14 @@ public class TopFieldDocs implements org.apache.thrift.TBase<TopFieldDocs,
TopFi
       }
       if (incoming.get(4)) {
         {
-          org.apache.thrift.protocol.TList _list121 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT,
iprot.readI32());
-          struct.fields = new ArrayList<SortField>(_list121.size);
-          for (int _i122 = 0; _i122 < _list121.size; ++_i122)
+          org.apache.thrift.protocol.TList _list101 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT,
iprot.readI32());
+          struct.fields = new ArrayList<SortField>(_list101.size);
+          for (int _i102 = 0; _i102 < _list101.size; ++_i102)
           {
-            SortField _elem123; // required
-            _elem123 = new SortField();
-            _elem123.read(iprot);
-            struct.fields.add(_elem123);
+            SortField _elem103; // required
+            _elem103 = new SortField();
+            _elem103.read(iprot);
+            struct.fields.add(_elem103);
           }
         }
         struct.setFieldsIsSet(true);

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/aee531c2/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/UpdatePackage.java
----------------------------------------------------------------------
diff --git a/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/UpdatePackage.java
b/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/UpdatePackage.java
index e41fc66..350bf5d 100644
--- a/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/UpdatePackage.java
+++ b/src/blur-thrift/src/main/java/org/apache/blur/thrift/generated/UpdatePackage.java
@@ -49,6 +49,9 @@ import java.util.Arrays;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+/**
+ * Contains a the delete term as well as the documents that will be added to the index shard.
+ */
 public class UpdatePackage implements org.apache.thrift.TBase<UpdatePackage, UpdatePackage._Fields>,
java.io.Serializable, Cloneable {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UpdatePackage");
 
@@ -62,22 +65,22 @@ public class UpdatePackage implements org.apache.thrift.TBase<UpdatePackage,
Upd
   }
 
   /**
-   * 
+   * The term that will mark old Documents as deleted before adding the documents.
    */
   public Term term; // required
   /**
-   * 
+   * The documents to be updated.
    */
   public List<Document> documents; // required
 
   /** The set of fields this struct contains, along with convenience methods for finding
and manipulating them. */
   public enum _Fields implements org.apache.thrift.TFieldIdEnum {
     /**
-     * 
+     * The term that will mark old Documents as deleted before adding the documents.
      */
     TERM((short)1, "term"),
     /**
-     * 
+     * The documents to be updated.
      */
     DOCUMENTS((short)2, "documents");
 
@@ -189,14 +192,14 @@ public class UpdatePackage implements org.apache.thrift.TBase<UpdatePackage,
Upd
   }
 
   /**
-   * 
+   * The term that will mark old Documents as deleted before adding the documents.
    */
   public Term getTerm() {
     return this.term;
   }
 
   /**
-   * 
+   * The term that will mark old Documents as deleted before adding the documents.
    */
   public UpdatePackage setTerm(Term term) {
     this.term = term;
@@ -234,14 +237,14 @@ public class UpdatePackage implements org.apache.thrift.TBase<UpdatePackage,
Upd
   }
 
   /**
-   * 
+   * The documents to be updated.
    */
   public List<Document> getDocuments() {
     return this.documents;
   }
 
   /**
-   * 
+   * The documents to be updated.
    */
   public UpdatePackage setDocuments(List<Document> documents) {
     this.documents = documents;
@@ -471,14 +474,14 @@ public class UpdatePackage implements org.apache.thrift.TBase<UpdatePackage,
Upd
           case 2: // DOCUMENTS
             if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
               {
-                org.apache.thrift.protocol.TList _list132 = iprot.readListBegin();
-                struct.documents = new ArrayList<Document>(_list132.size);
-                for (int _i133 = 0; _i133 < _list132.size; ++_i133)
+                org.apache.thrift.protocol.TList _list112 = iprot.readListBegin();
+                struct.documents = new ArrayList<Document>(_list112.size);
+                for (int _i113 = 0; _i113 < _list112.size; ++_i113)
                 {
-                  Document _elem134; // required
-                  _elem134 = new Document();
-                  _elem134.read(iprot);
-                  struct.documents.add(_elem134);
+                  Document _elem114; // required
+                  _elem114 = new Document();
+                  _elem114.read(iprot);
+                  struct.documents.add(_elem114);
                 }
                 iprot.readListEnd();
               }
@@ -511,9 +514,9 @@ public class UpdatePackage implements org.apache.thrift.TBase<UpdatePackage,
Upd
         oprot.writeFieldBegin(DOCUMENTS_FIELD_DESC);
         {
           oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT,
struct.documents.size()));
-          for (Document _iter135 : struct.documents)
+          for (Document _iter115 : struct.documents)
           {
-            _iter135.write(oprot);
+            _iter115.write(oprot);
           }
           oprot.writeListEnd();
         }
@@ -550,9 +553,9 @@ public class UpdatePackage implements org.apache.thrift.TBase<UpdatePackage,
Upd
       if (struct.isSetDocuments()) {
         {
           oprot.writeI32(struct.documents.size());
-          for (Document _iter136 : struct.documents)
+          for (Document _iter116 : struct.documents)
           {
-            _iter136.write(oprot);
+            _iter116.write(oprot);
           }
         }
       }
@@ -569,14 +572,14 @@ public class UpdatePackage implements org.apache.thrift.TBase<UpdatePackage,
Upd
       }
       if (incoming.get(1)) {
         {
-          org.apache.thrift.protocol.TList _list137 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT,
iprot.readI32());
-          struct.documents = new ArrayList<Document>(_list137.size);
-          for (int _i138 = 0; _i138 < _list137.size; ++_i138)
+          org.apache.thrift.protocol.TList _list117 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT,
iprot.readI32());
+          struct.documents = new ArrayList<Document>(_list117.size);
+          for (int _i118 = 0; _i118 < _list117.size; ++_i118)
           {
-            Document _elem139; // required
-            _elem139 = new Document();
-            _elem139.read(iprot);
-            struct.documents.add(_elem139);
+            Document _elem119; // required
+            _elem119 = new Document();
+            _elem119.read(iprot);
+            struct.documents.add(_elem119);
           }
         }
         struct.setDocumentsIsSet(true);


Mime
View raw message