incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [20/20] Generated the thrift code with new package names.
Date Mon, 03 Sep 2012 16:06:56 GMT
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/c9a4a8eb/interface/gen-java/org/apache/blur/thrift/generated/TableDescriptor.java
----------------------------------------------------------------------
diff --git a/interface/gen-java/org/apache/blur/thrift/generated/TableDescriptor.java b/interface/gen-java/org/apache/blur/thrift/generated/TableDescriptor.java
new file mode 100644
index 0000000..50651b4
--- /dev/null
+++ b/interface/gen-java/org/apache/blur/thrift/generated/TableDescriptor.java
@@ -0,0 +1,1581 @@
+/**
+ * Autogenerated by Thrift Compiler (0.7.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ */
+package org.apache.blur.thrift.generated;
+
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * 
+ */
+public class TableDescriptor implements org.apache.thrift.TBase<TableDescriptor, TableDescriptor._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TableDescriptor");
+
+  private static final org.apache.thrift.protocol.TField IS_ENABLED_FIELD_DESC = new org.apache.thrift.protocol.TField("isEnabled", org.apache.thrift.protocol.TType.BOOL, (short)1);
+  private static final org.apache.thrift.protocol.TField ANALYZER_DEFINITION_FIELD_DESC = new org.apache.thrift.protocol.TField("analyzerDefinition", org.apache.thrift.protocol.TType.STRUCT, (short)2);
+  private static final org.apache.thrift.protocol.TField SHARD_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("shardCount", org.apache.thrift.protocol.TType.I32, (short)3);
+  private static final org.apache.thrift.protocol.TField TABLE_URI_FIELD_DESC = new org.apache.thrift.protocol.TField("tableUri", org.apache.thrift.protocol.TType.STRING, (short)4);
+  private static final org.apache.thrift.protocol.TField COMPRESSION_CLASS_FIELD_DESC = new org.apache.thrift.protocol.TField("compressionClass", org.apache.thrift.protocol.TType.STRING, (short)5);
+  private static final org.apache.thrift.protocol.TField COMPRESSION_BLOCK_SIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("compressionBlockSize", org.apache.thrift.protocol.TType.I32, (short)6);
+  private static final org.apache.thrift.protocol.TField CLUSTER_FIELD_DESC = new org.apache.thrift.protocol.TField("cluster", org.apache.thrift.protocol.TType.STRING, (short)7);
+  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)8);
+  private static final org.apache.thrift.protocol.TField SIMILARITY_CLASS_FIELD_DESC = new org.apache.thrift.protocol.TField("similarityClass", org.apache.thrift.protocol.TType.STRING, (short)9);
+  private static final org.apache.thrift.protocol.TField BLOCK_CACHING_FIELD_DESC = new org.apache.thrift.protocol.TField("blockCaching", org.apache.thrift.protocol.TType.BOOL, (short)10);
+  private static final org.apache.thrift.protocol.TField BLOCK_CACHING_FILE_TYPES_FIELD_DESC = new org.apache.thrift.protocol.TField("blockCachingFileTypes", org.apache.thrift.protocol.TType.SET, (short)11);
+  private static final org.apache.thrift.protocol.TField READ_ONLY_FIELD_DESC = new org.apache.thrift.protocol.TField("readOnly", org.apache.thrift.protocol.TType.BOOL, (short)12);
+  private static final org.apache.thrift.protocol.TField COLUMN_PRE_CACHE_FIELD_DESC = new org.apache.thrift.protocol.TField("columnPreCache", org.apache.thrift.protocol.TType.STRUCT, (short)13);
+
+  /**
+   * 
+   */
+  public boolean isEnabled; // required
+  /**
+   * 
+   */
+  public AnalyzerDefinition analyzerDefinition; // required
+  /**
+   * 
+   */
+  public int shardCount; // required
+  /**
+   * 
+   */
+  public String tableUri; // required
+  /**
+   * 
+   */
+  public String compressionClass; // required
+  /**
+   * 
+   */
+  public int compressionBlockSize; // required
+  /**
+   * 
+   */
+  public String cluster; // required
+  /**
+   * 
+   */
+  public String name; // required
+  /**
+   * 
+   */
+  public String similarityClass; // required
+  /**
+   * 
+   */
+  public boolean blockCaching; // required
+  /**
+   * 
+   */
+  public Set<String> blockCachingFileTypes; // required
+  /**
+   * 
+   */
+  public boolean readOnly; // required
+  /**
+   * Sets what column families and columns to prefetch into block cache on shard open.
+   */
+  public ColumnPreCache columnPreCache; // 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 {
+    /**
+     * 
+     */
+    IS_ENABLED((short)1, "isEnabled"),
+    /**
+     * 
+     */
+    ANALYZER_DEFINITION((short)2, "analyzerDefinition"),
+    /**
+     * 
+     */
+    SHARD_COUNT((short)3, "shardCount"),
+    /**
+     * 
+     */
+    TABLE_URI((short)4, "tableUri"),
+    /**
+     * 
+     */
+    COMPRESSION_CLASS((short)5, "compressionClass"),
+    /**
+     * 
+     */
+    COMPRESSION_BLOCK_SIZE((short)6, "compressionBlockSize"),
+    /**
+     * 
+     */
+    CLUSTER((short)7, "cluster"),
+    /**
+     * 
+     */
+    NAME((short)8, "name"),
+    /**
+     * 
+     */
+    SIMILARITY_CLASS((short)9, "similarityClass"),
+    /**
+     * 
+     */
+    BLOCK_CACHING((short)10, "blockCaching"),
+    /**
+     * 
+     */
+    BLOCK_CACHING_FILE_TYPES((short)11, "blockCachingFileTypes"),
+    /**
+     * 
+     */
+    READ_ONLY((short)12, "readOnly"),
+    /**
+     * Sets what column families and columns to prefetch into block cache on shard open.
+     */
+    COLUMN_PRE_CACHE((short)13, "columnPreCache");
+
+    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+    static {
+      for (_Fields field : EnumSet.allOf(_Fields.class)) {
+        byName.put(field.getFieldName(), field);
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, or null if its not found.
+     */
+    public static _Fields findByThriftId(int fieldId) {
+      switch(fieldId) {
+        case 1: // IS_ENABLED
+          return IS_ENABLED;
+        case 2: // ANALYZER_DEFINITION
+          return ANALYZER_DEFINITION;
+        case 3: // SHARD_COUNT
+          return SHARD_COUNT;
+        case 4: // TABLE_URI
+          return TABLE_URI;
+        case 5: // COMPRESSION_CLASS
+          return COMPRESSION_CLASS;
+        case 6: // COMPRESSION_BLOCK_SIZE
+          return COMPRESSION_BLOCK_SIZE;
+        case 7: // CLUSTER
+          return CLUSTER;
+        case 8: // NAME
+          return NAME;
+        case 9: // SIMILARITY_CLASS
+          return SIMILARITY_CLASS;
+        case 10: // BLOCK_CACHING
+          return BLOCK_CACHING;
+        case 11: // BLOCK_CACHING_FILE_TYPES
+          return BLOCK_CACHING_FILE_TYPES;
+        case 12: // READ_ONLY
+          return READ_ONLY;
+        case 13: // COLUMN_PRE_CACHE
+          return COLUMN_PRE_CACHE;
+        default:
+          return null;
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, throwing an exception
+     * if it is not found.
+     */
+    public static _Fields findByThriftIdOrThrow(int fieldId) {
+      _Fields fields = findByThriftId(fieldId);
+      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+      return fields;
+    }
+
+    /**
+     * Find the _Fields constant that matches name, or null if its not found.
+     */
+    public static _Fields findByName(String name) {
+      return byName.get(name);
+    }
+
+    private final short _thriftId;
+    private final String _fieldName;
+
+    _Fields(short thriftId, String fieldName) {
+      _thriftId = thriftId;
+      _fieldName = fieldName;
+    }
+
+    public short getThriftFieldId() {
+      return _thriftId;
+    }
+
+    public String getFieldName() {
+      return _fieldName;
+    }
+  }
+
+  // isset id assignments
+  private static final int __ISENABLED_ISSET_ID = 0;
+  private static final int __SHARDCOUNT_ISSET_ID = 1;
+  private static final int __COMPRESSIONBLOCKSIZE_ISSET_ID = 2;
+  private static final int __BLOCKCACHING_ISSET_ID = 3;
+  private static final int __READONLY_ISSET_ID = 4;
+  private BitSet __isset_bit_vector = new BitSet(5);
+
+  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.IS_ENABLED, new org.apache.thrift.meta_data.FieldMetaData("isEnabled", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+    tmpMap.put(_Fields.ANALYZER_DEFINITION, new org.apache.thrift.meta_data.FieldMetaData("analyzerDefinition", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AnalyzerDefinition.class)));
+    tmpMap.put(_Fields.SHARD_COUNT, new org.apache.thrift.meta_data.FieldMetaData("shardCount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
+    tmpMap.put(_Fields.TABLE_URI, new org.apache.thrift.meta_data.FieldMetaData("tableUri", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.COMPRESSION_CLASS, new org.apache.thrift.meta_data.FieldMetaData("compressionClass", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.COMPRESSION_BLOCK_SIZE, new org.apache.thrift.meta_data.FieldMetaData("compressionBlockSize", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
+    tmpMap.put(_Fields.CLUSTER, new org.apache.thrift.meta_data.FieldMetaData("cluster", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    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.SIMILARITY_CLASS, new org.apache.thrift.meta_data.FieldMetaData("similarityClass", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.BLOCK_CACHING, new org.apache.thrift.meta_data.FieldMetaData("blockCaching", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+    tmpMap.put(_Fields.BLOCK_CACHING_FILE_TYPES, new org.apache.thrift.meta_data.FieldMetaData("blockCachingFileTypes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, 
+            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
+    tmpMap.put(_Fields.READ_ONLY, new org.apache.thrift.meta_data.FieldMetaData("readOnly", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+    tmpMap.put(_Fields.COLUMN_PRE_CACHE, new org.apache.thrift.meta_data.FieldMetaData("columnPreCache", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ColumnPreCache.class)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TableDescriptor.class, metaDataMap);
+  }
+
+  public TableDescriptor() {
+    this.isEnabled = true;
+
+    this.shardCount = 1;
+
+    this.compressionClass = "org.apache.hadoop.io.compress.DefaultCodec";
+
+    this.compressionBlockSize = 32768;
+
+    this.cluster = "default";
+
+    this.blockCaching = true;
+
+    this.readOnly = false;
+
+  }
+
+  public TableDescriptor(
+    boolean isEnabled,
+    AnalyzerDefinition analyzerDefinition,
+    int shardCount,
+    String tableUri,
+    String compressionClass,
+    int compressionBlockSize,
+    String cluster,
+    String name,
+    String similarityClass,
+    boolean blockCaching,
+    Set<String> blockCachingFileTypes,
+    boolean readOnly,
+    ColumnPreCache columnPreCache)
+  {
+    this();
+    this.isEnabled = isEnabled;
+    setIsEnabledIsSet(true);
+    this.analyzerDefinition = analyzerDefinition;
+    this.shardCount = shardCount;
+    setShardCountIsSet(true);
+    this.tableUri = tableUri;
+    this.compressionClass = compressionClass;
+    this.compressionBlockSize = compressionBlockSize;
+    setCompressionBlockSizeIsSet(true);
+    this.cluster = cluster;
+    this.name = name;
+    this.similarityClass = similarityClass;
+    this.blockCaching = blockCaching;
+    setBlockCachingIsSet(true);
+    this.blockCachingFileTypes = blockCachingFileTypes;
+    this.readOnly = readOnly;
+    setReadOnlyIsSet(true);
+    this.columnPreCache = columnPreCache;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public TableDescriptor(TableDescriptor other) {
+    __isset_bit_vector.clear();
+    __isset_bit_vector.or(other.__isset_bit_vector);
+    this.isEnabled = other.isEnabled;
+    if (other.isSetAnalyzerDefinition()) {
+      this.analyzerDefinition = new AnalyzerDefinition(other.analyzerDefinition);
+    }
+    this.shardCount = other.shardCount;
+    if (other.isSetTableUri()) {
+      this.tableUri = other.tableUri;
+    }
+    if (other.isSetCompressionClass()) {
+      this.compressionClass = other.compressionClass;
+    }
+    this.compressionBlockSize = other.compressionBlockSize;
+    if (other.isSetCluster()) {
+      this.cluster = other.cluster;
+    }
+    if (other.isSetName()) {
+      this.name = other.name;
+    }
+    if (other.isSetSimilarityClass()) {
+      this.similarityClass = other.similarityClass;
+    }
+    this.blockCaching = other.blockCaching;
+    if (other.isSetBlockCachingFileTypes()) {
+      Set<String> __this__blockCachingFileTypes = new HashSet<String>();
+      for (String other_element : other.blockCachingFileTypes) {
+        __this__blockCachingFileTypes.add(other_element);
+      }
+      this.blockCachingFileTypes = __this__blockCachingFileTypes;
+    }
+    this.readOnly = other.readOnly;
+    if (other.isSetColumnPreCache()) {
+      this.columnPreCache = new ColumnPreCache(other.columnPreCache);
+    }
+  }
+
+  public TableDescriptor deepCopy() {
+    return new TableDescriptor(this);
+  }
+
+  @Override
+  public void clear() {
+    this.isEnabled = true;
+
+    this.analyzerDefinition = null;
+    this.shardCount = 1;
+
+    this.tableUri = null;
+    this.compressionClass = "org.apache.hadoop.io.compress.DefaultCodec";
+
+    this.compressionBlockSize = 32768;
+
+    this.cluster = "default";
+
+    this.name = null;
+    this.similarityClass = null;
+    this.blockCaching = true;
+
+    this.blockCachingFileTypes = null;
+    this.readOnly = false;
+
+    this.columnPreCache = null;
+  }
+
+  /**
+   * 
+   */
+  public boolean isIsEnabled() {
+    return this.isEnabled;
+  }
+
+  /**
+   * 
+   */
+  public TableDescriptor setIsEnabled(boolean isEnabled) {
+    this.isEnabled = isEnabled;
+    setIsEnabledIsSet(true);
+    return this;
+  }
+
+  public void unsetIsEnabled() {
+    __isset_bit_vector.clear(__ISENABLED_ISSET_ID);
+  }
+
+  /** Returns true if field isEnabled is set (has been assigned a value) and false otherwise */
+  public boolean isSetIsEnabled() {
+    return __isset_bit_vector.get(__ISENABLED_ISSET_ID);
+  }
+
+  public void setIsEnabledIsSet(boolean value) {
+    __isset_bit_vector.set(__ISENABLED_ISSET_ID, value);
+  }
+
+  /**
+   * 
+   */
+  public AnalyzerDefinition getAnalyzerDefinition() {
+    return this.analyzerDefinition;
+  }
+
+  /**
+   * 
+   */
+  public TableDescriptor setAnalyzerDefinition(AnalyzerDefinition analyzerDefinition) {
+    this.analyzerDefinition = analyzerDefinition;
+    return this;
+  }
+
+  public void unsetAnalyzerDefinition() {
+    this.analyzerDefinition = null;
+  }
+
+  /** Returns true if field analyzerDefinition is set (has been assigned a value) and false otherwise */
+  public boolean isSetAnalyzerDefinition() {
+    return this.analyzerDefinition != null;
+  }
+
+  public void setAnalyzerDefinitionIsSet(boolean value) {
+    if (!value) {
+      this.analyzerDefinition = null;
+    }
+  }
+
+  /**
+   * 
+   */
+  public int getShardCount() {
+    return this.shardCount;
+  }
+
+  /**
+   * 
+   */
+  public TableDescriptor setShardCount(int shardCount) {
+    this.shardCount = shardCount;
+    setShardCountIsSet(true);
+    return this;
+  }
+
+  public void unsetShardCount() {
+    __isset_bit_vector.clear(__SHARDCOUNT_ISSET_ID);
+  }
+
+  /** Returns true if field shardCount is set (has been assigned a value) and false otherwise */
+  public boolean isSetShardCount() {
+    return __isset_bit_vector.get(__SHARDCOUNT_ISSET_ID);
+  }
+
+  public void setShardCountIsSet(boolean value) {
+    __isset_bit_vector.set(__SHARDCOUNT_ISSET_ID, value);
+  }
+
+  /**
+   * 
+   */
+  public String getTableUri() {
+    return this.tableUri;
+  }
+
+  /**
+   * 
+   */
+  public TableDescriptor setTableUri(String tableUri) {
+    this.tableUri = tableUri;
+    return this;
+  }
+
+  public void unsetTableUri() {
+    this.tableUri = null;
+  }
+
+  /** Returns true if field tableUri is set (has been assigned a value) and false otherwise */
+  public boolean isSetTableUri() {
+    return this.tableUri != null;
+  }
+
+  public void setTableUriIsSet(boolean value) {
+    if (!value) {
+      this.tableUri = null;
+    }
+  }
+
+  /**
+   * 
+   */
+  public String getCompressionClass() {
+    return this.compressionClass;
+  }
+
+  /**
+   * 
+   */
+  public TableDescriptor setCompressionClass(String compressionClass) {
+    this.compressionClass = compressionClass;
+    return this;
+  }
+
+  public void unsetCompressionClass() {
+    this.compressionClass = null;
+  }
+
+  /** Returns true if field compressionClass is set (has been assigned a value) and false otherwise */
+  public boolean isSetCompressionClass() {
+    return this.compressionClass != null;
+  }
+
+  public void setCompressionClassIsSet(boolean value) {
+    if (!value) {
+      this.compressionClass = null;
+    }
+  }
+
+  /**
+   * 
+   */
+  public int getCompressionBlockSize() {
+    return this.compressionBlockSize;
+  }
+
+  /**
+   * 
+   */
+  public TableDescriptor setCompressionBlockSize(int compressionBlockSize) {
+    this.compressionBlockSize = compressionBlockSize;
+    setCompressionBlockSizeIsSet(true);
+    return this;
+  }
+
+  public void unsetCompressionBlockSize() {
+    __isset_bit_vector.clear(__COMPRESSIONBLOCKSIZE_ISSET_ID);
+  }
+
+  /** Returns true if field compressionBlockSize is set (has been assigned a value) and false otherwise */
+  public boolean isSetCompressionBlockSize() {
+    return __isset_bit_vector.get(__COMPRESSIONBLOCKSIZE_ISSET_ID);
+  }
+
+  public void setCompressionBlockSizeIsSet(boolean value) {
+    __isset_bit_vector.set(__COMPRESSIONBLOCKSIZE_ISSET_ID, value);
+  }
+
+  /**
+   * 
+   */
+  public String getCluster() {
+    return this.cluster;
+  }
+
+  /**
+   * 
+   */
+  public TableDescriptor setCluster(String cluster) {
+    this.cluster = cluster;
+    return this;
+  }
+
+  public void unsetCluster() {
+    this.cluster = null;
+  }
+
+  /** Returns true if field cluster is set (has been assigned a value) and false otherwise */
+  public boolean isSetCluster() {
+    return this.cluster != null;
+  }
+
+  public void setClusterIsSet(boolean value) {
+    if (!value) {
+      this.cluster = null;
+    }
+  }
+
+  /**
+   * 
+   */
+  public String getName() {
+    return this.name;
+  }
+
+  /**
+   * 
+   */
+  public TableDescriptor setName(String name) {
+    this.name = name;
+    return this;
+  }
+
+  public void unsetName() {
+    this.name = null;
+  }
+
+  /** Returns true if field name is set (has been assigned a value) and false otherwise */
+  public boolean isSetName() {
+    return this.name != null;
+  }
+
+  public void setNameIsSet(boolean value) {
+    if (!value) {
+      this.name = null;
+    }
+  }
+
+  /**
+   * 
+   */
+  public String getSimilarityClass() {
+    return this.similarityClass;
+  }
+
+  /**
+   * 
+   */
+  public TableDescriptor setSimilarityClass(String similarityClass) {
+    this.similarityClass = similarityClass;
+    return this;
+  }
+
+  public void unsetSimilarityClass() {
+    this.similarityClass = null;
+  }
+
+  /** Returns true if field similarityClass is set (has been assigned a value) and false otherwise */
+  public boolean isSetSimilarityClass() {
+    return this.similarityClass != null;
+  }
+
+  public void setSimilarityClassIsSet(boolean value) {
+    if (!value) {
+      this.similarityClass = null;
+    }
+  }
+
+  /**
+   * 
+   */
+  public boolean isBlockCaching() {
+    return this.blockCaching;
+  }
+
+  /**
+   * 
+   */
+  public TableDescriptor setBlockCaching(boolean blockCaching) {
+    this.blockCaching = blockCaching;
+    setBlockCachingIsSet(true);
+    return this;
+  }
+
+  public void unsetBlockCaching() {
+    __isset_bit_vector.clear(__BLOCKCACHING_ISSET_ID);
+  }
+
+  /** Returns true if field blockCaching is set (has been assigned a value) and false otherwise */
+  public boolean isSetBlockCaching() {
+    return __isset_bit_vector.get(__BLOCKCACHING_ISSET_ID);
+  }
+
+  public void setBlockCachingIsSet(boolean value) {
+    __isset_bit_vector.set(__BLOCKCACHING_ISSET_ID, value);
+  }
+
+  public int getBlockCachingFileTypesSize() {
+    return (this.blockCachingFileTypes == null) ? 0 : this.blockCachingFileTypes.size();
+  }
+
+  public java.util.Iterator<String> getBlockCachingFileTypesIterator() {
+    return (this.blockCachingFileTypes == null) ? null : this.blockCachingFileTypes.iterator();
+  }
+
+  public void addToBlockCachingFileTypes(String elem) {
+    if (this.blockCachingFileTypes == null) {
+      this.blockCachingFileTypes = new HashSet<String>();
+    }
+    this.blockCachingFileTypes.add(elem);
+  }
+
+  /**
+   * 
+   */
+  public Set<String> getBlockCachingFileTypes() {
+    return this.blockCachingFileTypes;
+  }
+
+  /**
+   * 
+   */
+  public TableDescriptor setBlockCachingFileTypes(Set<String> blockCachingFileTypes) {
+    this.blockCachingFileTypes = blockCachingFileTypes;
+    return this;
+  }
+
+  public void unsetBlockCachingFileTypes() {
+    this.blockCachingFileTypes = null;
+  }
+
+  /** Returns true if field blockCachingFileTypes is set (has been assigned a value) and false otherwise */
+  public boolean isSetBlockCachingFileTypes() {
+    return this.blockCachingFileTypes != null;
+  }
+
+  public void setBlockCachingFileTypesIsSet(boolean value) {
+    if (!value) {
+      this.blockCachingFileTypes = null;
+    }
+  }
+
+  /**
+   * 
+   */
+  public boolean isReadOnly() {
+    return this.readOnly;
+  }
+
+  /**
+   * 
+   */
+  public TableDescriptor setReadOnly(boolean readOnly) {
+    this.readOnly = readOnly;
+    setReadOnlyIsSet(true);
+    return this;
+  }
+
+  public void unsetReadOnly() {
+    __isset_bit_vector.clear(__READONLY_ISSET_ID);
+  }
+
+  /** Returns true if field readOnly is set (has been assigned a value) and false otherwise */
+  public boolean isSetReadOnly() {
+    return __isset_bit_vector.get(__READONLY_ISSET_ID);
+  }
+
+  public void setReadOnlyIsSet(boolean value) {
+    __isset_bit_vector.set(__READONLY_ISSET_ID, value);
+  }
+
+  /**
+   * Sets what column families and columns to prefetch into block cache on shard open.
+   */
+  public ColumnPreCache getColumnPreCache() {
+    return this.columnPreCache;
+  }
+
+  /**
+   * Sets what column families and columns to prefetch into block cache on shard open.
+   */
+  public TableDescriptor setColumnPreCache(ColumnPreCache columnPreCache) {
+    this.columnPreCache = columnPreCache;
+    return this;
+  }
+
+  public void unsetColumnPreCache() {
+    this.columnPreCache = null;
+  }
+
+  /** Returns true if field columnPreCache is set (has been assigned a value) and false otherwise */
+  public boolean isSetColumnPreCache() {
+    return this.columnPreCache != null;
+  }
+
+  public void setColumnPreCacheIsSet(boolean value) {
+    if (!value) {
+      this.columnPreCache = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case IS_ENABLED:
+      if (value == null) {
+        unsetIsEnabled();
+      } else {
+        setIsEnabled((Boolean)value);
+      }
+      break;
+
+    case ANALYZER_DEFINITION:
+      if (value == null) {
+        unsetAnalyzerDefinition();
+      } else {
+        setAnalyzerDefinition((AnalyzerDefinition)value);
+      }
+      break;
+
+    case SHARD_COUNT:
+      if (value == null) {
+        unsetShardCount();
+      } else {
+        setShardCount((Integer)value);
+      }
+      break;
+
+    case TABLE_URI:
+      if (value == null) {
+        unsetTableUri();
+      } else {
+        setTableUri((String)value);
+      }
+      break;
+
+    case COMPRESSION_CLASS:
+      if (value == null) {
+        unsetCompressionClass();
+      } else {
+        setCompressionClass((String)value);
+      }
+      break;
+
+    case COMPRESSION_BLOCK_SIZE:
+      if (value == null) {
+        unsetCompressionBlockSize();
+      } else {
+        setCompressionBlockSize((Integer)value);
+      }
+      break;
+
+    case CLUSTER:
+      if (value == null) {
+        unsetCluster();
+      } else {
+        setCluster((String)value);
+      }
+      break;
+
+    case NAME:
+      if (value == null) {
+        unsetName();
+      } else {
+        setName((String)value);
+      }
+      break;
+
+    case SIMILARITY_CLASS:
+      if (value == null) {
+        unsetSimilarityClass();
+      } else {
+        setSimilarityClass((String)value);
+      }
+      break;
+
+    case BLOCK_CACHING:
+      if (value == null) {
+        unsetBlockCaching();
+      } else {
+        setBlockCaching((Boolean)value);
+      }
+      break;
+
+    case BLOCK_CACHING_FILE_TYPES:
+      if (value == null) {
+        unsetBlockCachingFileTypes();
+      } else {
+        setBlockCachingFileTypes((Set<String>)value);
+      }
+      break;
+
+    case READ_ONLY:
+      if (value == null) {
+        unsetReadOnly();
+      } else {
+        setReadOnly((Boolean)value);
+      }
+      break;
+
+    case COLUMN_PRE_CACHE:
+      if (value == null) {
+        unsetColumnPreCache();
+      } else {
+        setColumnPreCache((ColumnPreCache)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case IS_ENABLED:
+      return Boolean.valueOf(isIsEnabled());
+
+    case ANALYZER_DEFINITION:
+      return getAnalyzerDefinition();
+
+    case SHARD_COUNT:
+      return Integer.valueOf(getShardCount());
+
+    case TABLE_URI:
+      return getTableUri();
+
+    case COMPRESSION_CLASS:
+      return getCompressionClass();
+
+    case COMPRESSION_BLOCK_SIZE:
+      return Integer.valueOf(getCompressionBlockSize());
+
+    case CLUSTER:
+      return getCluster();
+
+    case NAME:
+      return getName();
+
+    case SIMILARITY_CLASS:
+      return getSimilarityClass();
+
+    case BLOCK_CACHING:
+      return Boolean.valueOf(isBlockCaching());
+
+    case BLOCK_CACHING_FILE_TYPES:
+      return getBlockCachingFileTypes();
+
+    case READ_ONLY:
+      return Boolean.valueOf(isReadOnly());
+
+    case COLUMN_PRE_CACHE:
+      return getColumnPreCache();
+
+    }
+    throw new IllegalStateException();
+  }
+
+  /** 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();
+    }
+
+    switch (field) {
+    case IS_ENABLED:
+      return isSetIsEnabled();
+    case ANALYZER_DEFINITION:
+      return isSetAnalyzerDefinition();
+    case SHARD_COUNT:
+      return isSetShardCount();
+    case TABLE_URI:
+      return isSetTableUri();
+    case COMPRESSION_CLASS:
+      return isSetCompressionClass();
+    case COMPRESSION_BLOCK_SIZE:
+      return isSetCompressionBlockSize();
+    case CLUSTER:
+      return isSetCluster();
+    case NAME:
+      return isSetName();
+    case SIMILARITY_CLASS:
+      return isSetSimilarityClass();
+    case BLOCK_CACHING:
+      return isSetBlockCaching();
+    case BLOCK_CACHING_FILE_TYPES:
+      return isSetBlockCachingFileTypes();
+    case READ_ONLY:
+      return isSetReadOnly();
+    case COLUMN_PRE_CACHE:
+      return isSetColumnPreCache();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof TableDescriptor)
+      return this.equals((TableDescriptor)that);
+    return false;
+  }
+
+  public boolean equals(TableDescriptor that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_isEnabled = true;
+    boolean that_present_isEnabled = true;
+    if (this_present_isEnabled || that_present_isEnabled) {
+      if (!(this_present_isEnabled && that_present_isEnabled))
+        return false;
+      if (this.isEnabled != that.isEnabled)
+        return false;
+    }
+
+    boolean this_present_analyzerDefinition = true && this.isSetAnalyzerDefinition();
+    boolean that_present_analyzerDefinition = true && that.isSetAnalyzerDefinition();
+    if (this_present_analyzerDefinition || that_present_analyzerDefinition) {
+      if (!(this_present_analyzerDefinition && that_present_analyzerDefinition))
+        return false;
+      if (!this.analyzerDefinition.equals(that.analyzerDefinition))
+        return false;
+    }
+
+    boolean this_present_shardCount = true;
+    boolean that_present_shardCount = true;
+    if (this_present_shardCount || that_present_shardCount) {
+      if (!(this_present_shardCount && that_present_shardCount))
+        return false;
+      if (this.shardCount != that.shardCount)
+        return false;
+    }
+
+    boolean this_present_tableUri = true && this.isSetTableUri();
+    boolean that_present_tableUri = true && that.isSetTableUri();
+    if (this_present_tableUri || that_present_tableUri) {
+      if (!(this_present_tableUri && that_present_tableUri))
+        return false;
+      if (!this.tableUri.equals(that.tableUri))
+        return false;
+    }
+
+    boolean this_present_compressionClass = true && this.isSetCompressionClass();
+    boolean that_present_compressionClass = true && that.isSetCompressionClass();
+    if (this_present_compressionClass || that_present_compressionClass) {
+      if (!(this_present_compressionClass && that_present_compressionClass))
+        return false;
+      if (!this.compressionClass.equals(that.compressionClass))
+        return false;
+    }
+
+    boolean this_present_compressionBlockSize = true;
+    boolean that_present_compressionBlockSize = true;
+    if (this_present_compressionBlockSize || that_present_compressionBlockSize) {
+      if (!(this_present_compressionBlockSize && that_present_compressionBlockSize))
+        return false;
+      if (this.compressionBlockSize != that.compressionBlockSize)
+        return false;
+    }
+
+    boolean this_present_cluster = true && this.isSetCluster();
+    boolean that_present_cluster = true && that.isSetCluster();
+    if (this_present_cluster || that_present_cluster) {
+      if (!(this_present_cluster && that_present_cluster))
+        return false;
+      if (!this.cluster.equals(that.cluster))
+        return false;
+    }
+
+    boolean this_present_name = true && this.isSetName();
+    boolean that_present_name = true && that.isSetName();
+    if (this_present_name || that_present_name) {
+      if (!(this_present_name && that_present_name))
+        return false;
+      if (!this.name.equals(that.name))
+        return false;
+    }
+
+    boolean this_present_similarityClass = true && this.isSetSimilarityClass();
+    boolean that_present_similarityClass = true && that.isSetSimilarityClass();
+    if (this_present_similarityClass || that_present_similarityClass) {
+      if (!(this_present_similarityClass && that_present_similarityClass))
+        return false;
+      if (!this.similarityClass.equals(that.similarityClass))
+        return false;
+    }
+
+    boolean this_present_blockCaching = true;
+    boolean that_present_blockCaching = true;
+    if (this_present_blockCaching || that_present_blockCaching) {
+      if (!(this_present_blockCaching && that_present_blockCaching))
+        return false;
+      if (this.blockCaching != that.blockCaching)
+        return false;
+    }
+
+    boolean this_present_blockCachingFileTypes = true && this.isSetBlockCachingFileTypes();
+    boolean that_present_blockCachingFileTypes = true && that.isSetBlockCachingFileTypes();
+    if (this_present_blockCachingFileTypes || that_present_blockCachingFileTypes) {
+      if (!(this_present_blockCachingFileTypes && that_present_blockCachingFileTypes))
+        return false;
+      if (!this.blockCachingFileTypes.equals(that.blockCachingFileTypes))
+        return false;
+    }
+
+    boolean this_present_readOnly = true;
+    boolean that_present_readOnly = true;
+    if (this_present_readOnly || that_present_readOnly) {
+      if (!(this_present_readOnly && that_present_readOnly))
+        return false;
+      if (this.readOnly != that.readOnly)
+        return false;
+    }
+
+    boolean this_present_columnPreCache = true && this.isSetColumnPreCache();
+    boolean that_present_columnPreCache = true && that.isSetColumnPreCache();
+    if (this_present_columnPreCache || that_present_columnPreCache) {
+      if (!(this_present_columnPreCache && that_present_columnPreCache))
+        return false;
+      if (!this.columnPreCache.equals(that.columnPreCache))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(TableDescriptor other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    TableDescriptor typedOther = (TableDescriptor)other;
+
+    lastComparison = Boolean.valueOf(isSetIsEnabled()).compareTo(typedOther.isSetIsEnabled());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetIsEnabled()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isEnabled, typedOther.isEnabled);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetAnalyzerDefinition()).compareTo(typedOther.isSetAnalyzerDefinition());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetAnalyzerDefinition()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.analyzerDefinition, typedOther.analyzerDefinition);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetShardCount()).compareTo(typedOther.isSetShardCount());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetShardCount()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shardCount, typedOther.shardCount);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetTableUri()).compareTo(typedOther.isSetTableUri());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetTableUri()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableUri, typedOther.tableUri);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetCompressionClass()).compareTo(typedOther.isSetCompressionClass());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetCompressionClass()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compressionClass, typedOther.compressionClass);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetCompressionBlockSize()).compareTo(typedOther.isSetCompressionBlockSize());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetCompressionBlockSize()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compressionBlockSize, typedOther.compressionBlockSize);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetCluster()).compareTo(typedOther.isSetCluster());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetCluster()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cluster, typedOther.cluster);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetName()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetSimilarityClass()).compareTo(typedOther.isSetSimilarityClass());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetSimilarityClass()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.similarityClass, typedOther.similarityClass);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetBlockCaching()).compareTo(typedOther.isSetBlockCaching());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetBlockCaching()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.blockCaching, typedOther.blockCaching);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetBlockCachingFileTypes()).compareTo(typedOther.isSetBlockCachingFileTypes());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetBlockCachingFileTypes()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.blockCachingFileTypes, typedOther.blockCachingFileTypes);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetReadOnly()).compareTo(typedOther.isSetReadOnly());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetReadOnly()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.readOnly, typedOther.readOnly);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetColumnPreCache()).compareTo(typedOther.isSetColumnPreCache());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetColumnPreCache()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnPreCache, typedOther.columnPreCache);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    return 0;
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+  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 == org.apache.thrift.protocol.TType.STOP) { 
+        break;
+      }
+      switch (field.id) {
+        case 1: // IS_ENABLED
+          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
+            this.isEnabled = iprot.readBool();
+            setIsEnabledIsSet(true);
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 2: // ANALYZER_DEFINITION
+          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
+            this.analyzerDefinition = new AnalyzerDefinition();
+            this.analyzerDefinition.read(iprot);
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 3: // SHARD_COUNT
+          if (field.type == org.apache.thrift.protocol.TType.I32) {
+            this.shardCount = iprot.readI32();
+            setShardCountIsSet(true);
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 4: // TABLE_URI
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
+            this.tableUri = iprot.readString();
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 5: // COMPRESSION_CLASS
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
+            this.compressionClass = iprot.readString();
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 6: // COMPRESSION_BLOCK_SIZE
+          if (field.type == org.apache.thrift.protocol.TType.I32) {
+            this.compressionBlockSize = iprot.readI32();
+            setCompressionBlockSizeIsSet(true);
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 7: // CLUSTER
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
+            this.cluster = iprot.readString();
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 8: // NAME
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
+            this.name = iprot.readString();
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 9: // SIMILARITY_CLASS
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
+            this.similarityClass = iprot.readString();
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 10: // BLOCK_CACHING
+          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
+            this.blockCaching = iprot.readBool();
+            setBlockCachingIsSet(true);
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 11: // BLOCK_CACHING_FILE_TYPES
+          if (field.type == org.apache.thrift.protocol.TType.SET) {
+            {
+              org.apache.thrift.protocol.TSet _set79 = iprot.readSetBegin();
+              this.blockCachingFileTypes = new HashSet<String>(2*_set79.size);
+              for (int _i80 = 0; _i80 < _set79.size; ++_i80)
+              {
+                String _elem81; // required
+                _elem81 = iprot.readString();
+                this.blockCachingFileTypes.add(_elem81);
+              }
+              iprot.readSetEnd();
+            }
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 12: // READ_ONLY
+          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
+            this.readOnly = iprot.readBool();
+            setReadOnlyIsSet(true);
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 13: // COLUMN_PRE_CACHE
+          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
+            this.columnPreCache = new ColumnPreCache();
+            this.columnPreCache.read(iprot);
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        default:
+          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+      }
+      iprot.readFieldEnd();
+    }
+    iprot.readStructEnd();
+
+    // check for required fields of primitive type, which can't be checked in the validate method
+    validate();
+  }
+
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+    validate();
+
+    oprot.writeStructBegin(STRUCT_DESC);
+    oprot.writeFieldBegin(IS_ENABLED_FIELD_DESC);
+    oprot.writeBool(this.isEnabled);
+    oprot.writeFieldEnd();
+    if (this.analyzerDefinition != null) {
+      oprot.writeFieldBegin(ANALYZER_DEFINITION_FIELD_DESC);
+      this.analyzerDefinition.write(oprot);
+      oprot.writeFieldEnd();
+    }
+    oprot.writeFieldBegin(SHARD_COUNT_FIELD_DESC);
+    oprot.writeI32(this.shardCount);
+    oprot.writeFieldEnd();
+    if (this.tableUri != null) {
+      oprot.writeFieldBegin(TABLE_URI_FIELD_DESC);
+      oprot.writeString(this.tableUri);
+      oprot.writeFieldEnd();
+    }
+    if (this.compressionClass != null) {
+      oprot.writeFieldBegin(COMPRESSION_CLASS_FIELD_DESC);
+      oprot.writeString(this.compressionClass);
+      oprot.writeFieldEnd();
+    }
+    oprot.writeFieldBegin(COMPRESSION_BLOCK_SIZE_FIELD_DESC);
+    oprot.writeI32(this.compressionBlockSize);
+    oprot.writeFieldEnd();
+    if (this.cluster != null) {
+      oprot.writeFieldBegin(CLUSTER_FIELD_DESC);
+      oprot.writeString(this.cluster);
+      oprot.writeFieldEnd();
+    }
+    if (this.name != null) {
+      oprot.writeFieldBegin(NAME_FIELD_DESC);
+      oprot.writeString(this.name);
+      oprot.writeFieldEnd();
+    }
+    if (this.similarityClass != null) {
+      oprot.writeFieldBegin(SIMILARITY_CLASS_FIELD_DESC);
+      oprot.writeString(this.similarityClass);
+      oprot.writeFieldEnd();
+    }
+    oprot.writeFieldBegin(BLOCK_CACHING_FIELD_DESC);
+    oprot.writeBool(this.blockCaching);
+    oprot.writeFieldEnd();
+    if (this.blockCachingFileTypes != null) {
+      oprot.writeFieldBegin(BLOCK_CACHING_FILE_TYPES_FIELD_DESC);
+      {
+        oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, this.blockCachingFileTypes.size()));
+        for (String _iter82 : this.blockCachingFileTypes)
+        {
+          oprot.writeString(_iter82);
+        }
+        oprot.writeSetEnd();
+      }
+      oprot.writeFieldEnd();
+    }
+    oprot.writeFieldBegin(READ_ONLY_FIELD_DESC);
+    oprot.writeBool(this.readOnly);
+    oprot.writeFieldEnd();
+    if (this.columnPreCache != null) {
+      oprot.writeFieldBegin(COLUMN_PRE_CACHE_FIELD_DESC);
+      this.columnPreCache.write(oprot);
+      oprot.writeFieldEnd();
+    }
+    oprot.writeFieldStop();
+    oprot.writeStructEnd();
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("TableDescriptor(");
+    boolean first = true;
+
+    sb.append("isEnabled:");
+    sb.append(this.isEnabled);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("analyzerDefinition:");
+    if (this.analyzerDefinition == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.analyzerDefinition);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("shardCount:");
+    sb.append(this.shardCount);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("tableUri:");
+    if (this.tableUri == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.tableUri);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("compressionClass:");
+    if (this.compressionClass == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.compressionClass);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("compressionBlockSize:");
+    sb.append(this.compressionBlockSize);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("cluster:");
+    if (this.cluster == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.cluster);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("name:");
+    if (this.name == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.name);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("similarityClass:");
+    if (this.similarityClass == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.similarityClass);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("blockCaching:");
+    sb.append(this.blockCaching);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("blockCachingFileTypes:");
+    if (this.blockCachingFileTypes == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.blockCachingFileTypes);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("readOnly:");
+    sb.append(this.readOnly);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("columnPreCache:");
+    if (this.columnPreCache == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.columnPreCache);
+    }
+    first = false;
+    sb.append(")");
+    return sb.toString();
+  }
+
+  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);
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/c9a4a8eb/interface/gen-java/org/apache/blur/thrift/generated/TableStats.java
----------------------------------------------------------------------
diff --git a/interface/gen-java/org/apache/blur/thrift/generated/TableStats.java b/interface/gen-java/org/apache/blur/thrift/generated/TableStats.java
new file mode 100644
index 0000000..e8720e1
--- /dev/null
+++ b/interface/gen-java/org/apache/blur/thrift/generated/TableStats.java
@@ -0,0 +1,723 @@
+/**
+ * Autogenerated by Thrift Compiler (0.7.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ */
+package org.apache.blur.thrift.generated;
+
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+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);
+
+  /**
+   * 
+   */
+  public String tableName; // required
+  /**
+   * 
+   */
+  public long bytes; // required
+  /**
+   * 
+   */
+  public long recordCount; // required
+  /**
+   * 
+   */
+  public long rowCount; // required
+  /**
+   * 
+   */
+  public long queries; // 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 {
+    /**
+     * 
+     */
+    TABLE_NAME((short)1, "tableName"),
+    /**
+     * 
+     */
+    BYTES((short)2, "bytes"),
+    /**
+     * 
+     */
+    RECORD_COUNT((short)3, "recordCount"),
+    /**
+     * 
+     */
+    ROW_COUNT((short)4, "rowCount"),
+    /**
+     * 
+     */
+    QUERIES((short)5, "queries");
+
+    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+    static {
+      for (_Fields field : EnumSet.allOf(_Fields.class)) {
+        byName.put(field.getFieldName(), field);
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, or null if its not found.
+     */
+    public static _Fields findByThriftId(int fieldId) {
+      switch(fieldId) {
+        case 1: // TABLE_NAME
+          return TABLE_NAME;
+        case 2: // BYTES
+          return BYTES;
+        case 3: // RECORD_COUNT
+          return RECORD_COUNT;
+        case 4: // ROW_COUNT
+          return ROW_COUNT;
+        case 5: // QUERIES
+          return QUERIES;
+        default:
+          return null;
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, throwing an exception
+     * if it is not found.
+     */
+    public static _Fields findByThriftIdOrThrow(int fieldId) {
+      _Fields fields = findByThriftId(fieldId);
+      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+      return fields;
+    }
+
+    /**
+     * Find the _Fields constant that matches name, or null if its not found.
+     */
+    public static _Fields findByName(String name) {
+      return byName.get(name);
+    }
+
+    private final short _thriftId;
+    private final String _fieldName;
+
+    _Fields(short thriftId, String fieldName) {
+      _thriftId = thriftId;
+      _fieldName = fieldName;
+    }
+
+    public short getThriftFieldId() {
+      return _thriftId;
+    }
+
+    public String getFieldName() {
+      return _fieldName;
+    }
+  }
+
+  // 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 BitSet __isset_bit_vector = new BitSet(4);
+
+  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, 
+        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)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TableStats.class, metaDataMap);
+  }
+
+  public TableStats() {
+  }
+
+  public TableStats(
+    String tableName,
+    long bytes,
+    long recordCount,
+    long rowCount,
+    long queries)
+  {
+    this();
+    this.tableName = tableName;
+    this.bytes = bytes;
+    setBytesIsSet(true);
+    this.recordCount = recordCount;
+    setRecordCountIsSet(true);
+    this.rowCount = rowCount;
+    setRowCountIsSet(true);
+    this.queries = queries;
+    setQueriesIsSet(true);
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public TableStats(TableStats other) {
+    __isset_bit_vector.clear();
+    __isset_bit_vector.or(other.__isset_bit_vector);
+    if (other.isSetTableName()) {
+      this.tableName = other.tableName;
+    }
+    this.bytes = other.bytes;
+    this.recordCount = other.recordCount;
+    this.rowCount = other.rowCount;
+    this.queries = other.queries;
+  }
+
+  public TableStats deepCopy() {
+    return new TableStats(this);
+  }
+
+  @Override
+  public void clear() {
+    this.tableName = null;
+    setBytesIsSet(false);
+    this.bytes = 0;
+    setRecordCountIsSet(false);
+    this.recordCount = 0;
+    setRowCountIsSet(false);
+    this.rowCount = 0;
+    setQueriesIsSet(false);
+    this.queries = 0;
+  }
+
+  /**
+   * 
+   */
+  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;
+  }
+
+  /**
+   * 
+   */
+  public TableStats setBytes(long bytes) {
+    this.bytes = bytes;
+    setBytesIsSet(true);
+    return this;
+  }
+
+  public void unsetBytes() {
+    __isset_bit_vector.clear(__BYTES_ISSET_ID);
+  }
+
+  /** Returns true if field bytes is set (has been assigned a value) and false otherwise */
+  public boolean isSetBytes() {
+    return __isset_bit_vector.get(__BYTES_ISSET_ID);
+  }
+
+  public void setBytesIsSet(boolean value) {
+    __isset_bit_vector.set(__BYTES_ISSET_ID, value);
+  }
+
+  /**
+   * 
+   */
+  public long getRecordCount() {
+    return this.recordCount;
+  }
+
+  /**
+   * 
+   */
+  public TableStats setRecordCount(long recordCount) {
+    this.recordCount = recordCount;
+    setRecordCountIsSet(true);
+    return this;
+  }
+
+  public void unsetRecordCount() {
+    __isset_bit_vector.clear(__RECORDCOUNT_ISSET_ID);
+  }
+
+  /** Returns true if field recordCount is set (has been assigned a value) and false otherwise */
+  public boolean isSetRecordCount() {
+    return __isset_bit_vector.get(__RECORDCOUNT_ISSET_ID);
+  }
+
+  public void setRecordCountIsSet(boolean value) {
+    __isset_bit_vector.set(__RECORDCOUNT_ISSET_ID, value);
+  }
+
+  /**
+   * 
+   */
+  public long getRowCount() {
+    return this.rowCount;
+  }
+
+  /**
+   * 
+   */
+  public TableStats setRowCount(long rowCount) {
+    this.rowCount = rowCount;
+    setRowCountIsSet(true);
+    return this;
+  }
+
+  public void unsetRowCount() {
+    __isset_bit_vector.clear(__ROWCOUNT_ISSET_ID);
+  }
+
+  /** Returns true if field rowCount is set (has been assigned a value) and false otherwise */
+  public boolean isSetRowCount() {
+    return __isset_bit_vector.get(__ROWCOUNT_ISSET_ID);
+  }
+
+  public void setRowCountIsSet(boolean value) {
+    __isset_bit_vector.set(__ROWCOUNT_ISSET_ID, value);
+  }
+
+  /**
+   * 
+   */
+  public long getQueries() {
+    return this.queries;
+  }
+
+  /**
+   * 
+   */
+  public TableStats setQueries(long queries) {
+    this.queries = queries;
+    setQueriesIsSet(true);
+    return this;
+  }
+
+  public void unsetQueries() {
+    __isset_bit_vector.clear(__QUERIES_ISSET_ID);
+  }
+
+  /** Returns true if field queries is set (has been assigned a value) and false otherwise */
+  public boolean isSetQueries() {
+    return __isset_bit_vector.get(__QUERIES_ISSET_ID);
+  }
+
+  public void setQueriesIsSet(boolean value) {
+    __isset_bit_vector.set(__QUERIES_ISSET_ID, value);
+  }
+
+  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();
+      } else {
+        setBytes((Long)value);
+      }
+      break;
+
+    case RECORD_COUNT:
+      if (value == null) {
+        unsetRecordCount();
+      } else {
+        setRecordCount((Long)value);
+      }
+      break;
+
+    case ROW_COUNT:
+      if (value == null) {
+        unsetRowCount();
+      } else {
+        setRowCount((Long)value);
+      }
+      break;
+
+    case QUERIES:
+      if (value == null) {
+        unsetQueries();
+      } else {
+        setQueries((Long)value);
+      }
+      break;
+
+    }
+  }
+
+  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 QUERIES:
+      return Long.valueOf(getQueries());
+
+    }
+    throw new IllegalStateException();
+  }
+
+  /** 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();
+    }
+
+    switch (field) {
+    case TABLE_NAME:
+      return isSetTableName();
+    case BYTES:
+      return isSetBytes();
+    case RECORD_COUNT:
+      return isSetRecordCount();
+    case ROW_COUNT:
+      return isSetRowCount();
+    case QUERIES:
+      return isSetQueries();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof TableStats)
+      return this.equals((TableStats)that);
+    return false;
+  }
+
+  public boolean equals(TableStats that) {
+    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) {
+      if (!(this_present_bytes && that_present_bytes))
+        return false;
+      if (this.bytes != that.bytes)
+        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))
+        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)
+        return false;
+    }
+
+    boolean this_present_queries = true;
+    boolean that_present_queries = true;
+    if (this_present_queries || that_present_queries) {
+      if (!(this_present_queries && that_present_queries))
+        return false;
+      if (this.queries != that.queries)
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(TableStats other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    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;
+    }
+    if (isSetBytes()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bytes, typedOther.bytes);
+      if (lastComparison != 0) {
+        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());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetRowCount()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rowCount, typedOther.rowCount);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetQueries()).compareTo(typedOther.isSetQueries());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetQueries()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queries, typedOther.queries);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    return 0;
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+  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 == org.apache.thrift.protocol.TType.STOP) { 
+        break;
+      }
+      switch (field.id) {
+        case 1: // TABLE_NAME
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
+            this.tableName = iprot.readString();
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 2: // BYTES
+          if (field.type == org.apache.thrift.protocol.TType.I64) {
+            this.bytes = iprot.readI64();
+            setBytesIsSet(true);
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 3: // RECORD_COUNT
+          if (field.type == org.apache.thrift.protocol.TType.I64) {
+            this.recordCount = iprot.readI64();
+            setRecordCountIsSet(true);
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 4: // ROW_COUNT
+          if (field.type == org.apache.thrift.protocol.TType.I64) {
+            this.rowCount = iprot.readI64();
+            setRowCountIsSet(true);
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 5: // QUERIES
+          if (field.type == org.apache.thrift.protocol.TType.I64) {
+            this.queries = iprot.readI64();
+            setQueriesIsSet(true);
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        default:
+          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+      }
+      iprot.readFieldEnd();
+    }
+    iprot.readStructEnd();
+
+    // check for required fields of primitive type, which can't be checked in the validate method
+    validate();
+  }
+
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+    validate();
+
+    oprot.writeStructBegin(STRUCT_DESC);
+    if (this.tableName != null) {
+      oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
+      oprot.writeString(this.tableName);
+      oprot.writeFieldEnd();
+    }
+    oprot.writeFieldBegin(BYTES_FIELD_DESC);
+    oprot.writeI64(this.bytes);
+    oprot.writeFieldEnd();
+    oprot.writeFieldBegin(RECORD_COUNT_FIELD_DESC);
+    oprot.writeI64(this.recordCount);
+    oprot.writeFieldEnd();
+    oprot.writeFieldBegin(ROW_COUNT_FIELD_DESC);
+    oprot.writeI64(this.rowCount);
+    oprot.writeFieldEnd();
+    oprot.writeFieldBegin(QUERIES_FIELD_DESC);
+    oprot.writeI64(this.queries);
+    oprot.writeFieldEnd();
+    oprot.writeFieldStop();
+    oprot.writeStructEnd();
+  }
+
+  @Override
+  public String toString() {
+    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);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("queries:");
+    sb.append(this.queries);
+    first = false;
+    sb.append(")");
+    return sb.toString();
+  }
+
+  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);
+    }
+  }
+
+}
+


Mime
View raw message