/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
/*
 * Autogenerated by Thrift Compiler (0.17.0)
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated
 */
package org.apache.accumulo.core.master.thrift;

@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public class TableInfo implements org.apache.thrift.TBase<TableInfo, TableInfo._Fields>, java.io.Serializable, Cloneable, Comparable<TableInfo> {
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TableInfo");

  private static final org.apache.thrift.protocol.TField RECS_FIELD_DESC = new org.apache.thrift.protocol.TField("recs", org.apache.thrift.protocol.TType.I64, (short)1);
  private static final org.apache.thrift.protocol.TField RECS_IN_MEMORY_FIELD_DESC = new org.apache.thrift.protocol.TField("recsInMemory", org.apache.thrift.protocol.TType.I64, (short)2);
  private static final org.apache.thrift.protocol.TField TABLETS_FIELD_DESC = new org.apache.thrift.protocol.TField("tablets", org.apache.thrift.protocol.TType.I32, (short)3);
  private static final org.apache.thrift.protocol.TField ONLINE_TABLETS_FIELD_DESC = new org.apache.thrift.protocol.TField("onlineTablets", org.apache.thrift.protocol.TType.I32, (short)4);
  private static final org.apache.thrift.protocol.TField INGEST_RATE_FIELD_DESC = new org.apache.thrift.protocol.TField("ingestRate", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
  private static final org.apache.thrift.protocol.TField INGEST_BYTE_RATE_FIELD_DESC = new org.apache.thrift.protocol.TField("ingestByteRate", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
  private static final org.apache.thrift.protocol.TField QUERY_RATE_FIELD_DESC = new org.apache.thrift.protocol.TField("queryRate", org.apache.thrift.protocol.TType.DOUBLE, (short)7);
  private static final org.apache.thrift.protocol.TField QUERY_BYTE_RATE_FIELD_DESC = new org.apache.thrift.protocol.TField("queryByteRate", org.apache.thrift.protocol.TType.DOUBLE, (short)8);
  private static final org.apache.thrift.protocol.TField MINORS_FIELD_DESC = new org.apache.thrift.protocol.TField("minors", org.apache.thrift.protocol.TType.STRUCT, (short)9);
  private static final org.apache.thrift.protocol.TField MAJORS_FIELD_DESC = new org.apache.thrift.protocol.TField("majors", org.apache.thrift.protocol.TType.STRUCT, (short)10);
  private static final org.apache.thrift.protocol.TField SCANS_FIELD_DESC = new org.apache.thrift.protocol.TField("scans", org.apache.thrift.protocol.TType.STRUCT, (short)11);
  private static final org.apache.thrift.protocol.TField SCAN_RATE_FIELD_DESC = new org.apache.thrift.protocol.TField("scanRate", org.apache.thrift.protocol.TType.DOUBLE, (short)12);

  private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TableInfoStandardSchemeFactory();
  private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TableInfoTupleSchemeFactory();

  public long recs; // required
  public long recsInMemory; // required
  public int tablets; // required
  public int onlineTablets; // required
  public double ingestRate; // required
  public double ingestByteRate; // required
  public double queryRate; // required
  public double queryByteRate; // required
  public @org.apache.thrift.annotation.Nullable Compacting minors; // required
  public @org.apache.thrift.annotation.Nullable Compacting majors; // required
  public @org.apache.thrift.annotation.Nullable Compacting scans; // required
  public double scanRate; // 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 {
    RECS((short)1, "recs"),
    RECS_IN_MEMORY((short)2, "recsInMemory"),
    TABLETS((short)3, "tablets"),
    ONLINE_TABLETS((short)4, "onlineTablets"),
    INGEST_RATE((short)5, "ingestRate"),
    INGEST_BYTE_RATE((short)6, "ingestByteRate"),
    QUERY_RATE((short)7, "queryRate"),
    QUERY_BYTE_RATE((short)8, "queryByteRate"),
    MINORS((short)9, "minors"),
    MAJORS((short)10, "majors"),
    SCANS((short)11, "scans"),
    SCAN_RATE((short)12, "scanRate");

    private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();

    static {
      for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
        byName.put(field.getFieldName(), field);
      }
    }

    /**
     * Find the _Fields constant that matches fieldId, or null if its not found.
     */
    @org.apache.thrift.annotation.Nullable
    public static _Fields findByThriftId(int fieldId) {
      switch(fieldId) {
        case 1: // RECS
          return RECS;
        case 2: // RECS_IN_MEMORY
          return RECS_IN_MEMORY;
        case 3: // TABLETS
          return TABLETS;
        case 4: // ONLINE_TABLETS
          return ONLINE_TABLETS;
        case 5: // INGEST_RATE
          return INGEST_RATE;
        case 6: // INGEST_BYTE_RATE
          return INGEST_BYTE_RATE;
        case 7: // QUERY_RATE
          return QUERY_RATE;
        case 8: // QUERY_BYTE_RATE
          return QUERY_BYTE_RATE;
        case 9: // MINORS
          return MINORS;
        case 10: // MAJORS
          return MAJORS;
        case 11: // SCANS
          return SCANS;
        case 12: // SCAN_RATE
          return SCAN_RATE;
        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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
      return fields;
    }

    /**
     * Find the _Fields constant that matches name, or null if its not found.
     */
    @org.apache.thrift.annotation.Nullable
    public static _Fields findByName(java.lang.String name) {
      return byName.get(name);
    }

    private final short _thriftId;
    private final java.lang.String _fieldName;

    _Fields(short thriftId, java.lang.String fieldName) {
      _thriftId = thriftId;
      _fieldName = fieldName;
    }

    @Override
    public short getThriftFieldId() {
      return _thriftId;
    }

    @Override
    public java.lang.String getFieldName() {
      return _fieldName;
    }
  }

  // isset id assignments
  private static final int __RECS_ISSET_ID = 0;
  private static final int __RECSINMEMORY_ISSET_ID = 1;
  private static final int __TABLETS_ISSET_ID = 2;
  private static final int __ONLINETABLETS_ISSET_ID = 3;
  private static final int __INGESTRATE_ISSET_ID = 4;
  private static final int __INGESTBYTERATE_ISSET_ID = 5;
  private static final int __QUERYRATE_ISSET_ID = 6;
  private static final int __QUERYBYTERATE_ISSET_ID = 7;
  private static final int __SCANRATE_ISSET_ID = 8;
  private short __isset_bitfield = 0;
  public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
  static {
    java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    tmpMap.put(_Fields.RECS, new org.apache.thrift.meta_data.FieldMetaData("recs", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.RECS_IN_MEMORY, new org.apache.thrift.meta_data.FieldMetaData("recsInMemory", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.TABLETS, new org.apache.thrift.meta_data.FieldMetaData("tablets", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
    tmpMap.put(_Fields.ONLINE_TABLETS, new org.apache.thrift.meta_data.FieldMetaData("onlineTablets", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
    tmpMap.put(_Fields.INGEST_RATE, new org.apache.thrift.meta_data.FieldMetaData("ingestRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.INGEST_BYTE_RATE, new org.apache.thrift.meta_data.FieldMetaData("ingestByteRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.QUERY_RATE, new org.apache.thrift.meta_data.FieldMetaData("queryRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.QUERY_BYTE_RATE, new org.apache.thrift.meta_data.FieldMetaData("queryByteRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.MINORS, new org.apache.thrift.meta_data.FieldMetaData("minors", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Compacting.class)));
    tmpMap.put(_Fields.MAJORS, new org.apache.thrift.meta_data.FieldMetaData("majors", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Compacting.class)));
    tmpMap.put(_Fields.SCANS, new org.apache.thrift.meta_data.FieldMetaData("scans", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Compacting.class)));
    tmpMap.put(_Fields.SCAN_RATE, new org.apache.thrift.meta_data.FieldMetaData("scanRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TableInfo.class, metaDataMap);
  }

  public TableInfo() {
  }

  public TableInfo(
    long recs,
    long recsInMemory,
    int tablets,
    int onlineTablets,
    double ingestRate,
    double ingestByteRate,
    double queryRate,
    double queryByteRate,
    Compacting minors,
    Compacting majors,
    Compacting scans,
    double scanRate)
  {
    this();
    this.recs = recs;
    setRecsIsSet(true);
    this.recsInMemory = recsInMemory;
    setRecsInMemoryIsSet(true);
    this.tablets = tablets;
    setTabletsIsSet(true);
    this.onlineTablets = onlineTablets;
    setOnlineTabletsIsSet(true);
    this.ingestRate = ingestRate;
    setIngestRateIsSet(true);
    this.ingestByteRate = ingestByteRate;
    setIngestByteRateIsSet(true);
    this.queryRate = queryRate;
    setQueryRateIsSet(true);
    this.queryByteRate = queryByteRate;
    setQueryByteRateIsSet(true);
    this.minors = minors;
    this.majors = majors;
    this.scans = scans;
    this.scanRate = scanRate;
    setScanRateIsSet(true);
  }

  /**
   * Performs a deep copy on <i>other</i>.
   */
  public TableInfo(TableInfo other) {
    __isset_bitfield = other.__isset_bitfield;
    this.recs = other.recs;
    this.recsInMemory = other.recsInMemory;
    this.tablets = other.tablets;
    this.onlineTablets = other.onlineTablets;
    this.ingestRate = other.ingestRate;
    this.ingestByteRate = other.ingestByteRate;
    this.queryRate = other.queryRate;
    this.queryByteRate = other.queryByteRate;
    if (other.isSetMinors()) {
      this.minors = new Compacting(other.minors);
    }
    if (other.isSetMajors()) {
      this.majors = new Compacting(other.majors);
    }
    if (other.isSetScans()) {
      this.scans = new Compacting(other.scans);
    }
    this.scanRate = other.scanRate;
  }

  @Override
  public TableInfo deepCopy() {
    return new TableInfo(this);
  }

  @Override
  public void clear() {
    setRecsIsSet(false);
    this.recs = 0;
    setRecsInMemoryIsSet(false);
    this.recsInMemory = 0;
    setTabletsIsSet(false);
    this.tablets = 0;
    setOnlineTabletsIsSet(false);
    this.onlineTablets = 0;
    setIngestRateIsSet(false);
    this.ingestRate = 0.0;
    setIngestByteRateIsSet(false);
    this.ingestByteRate = 0.0;
    setQueryRateIsSet(false);
    this.queryRate = 0.0;
    setQueryByteRateIsSet(false);
    this.queryByteRate = 0.0;
    this.minors = null;
    this.majors = null;
    this.scans = null;
    setScanRateIsSet(false);
    this.scanRate = 0.0;
  }

  public long getRecs() {
    return this.recs;
  }

  public TableInfo setRecs(long recs) {
    this.recs = recs;
    setRecsIsSet(true);
    return this;
  }

  public void unsetRecs() {
    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __RECS_ISSET_ID);
  }

  /** Returns true if field recs is set (has been assigned a value) and false otherwise */
  public boolean isSetRecs() {
    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __RECS_ISSET_ID);
  }

  public void setRecsIsSet(boolean value) {
    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __RECS_ISSET_ID, value);
  }

  public long getRecsInMemory() {
    return this.recsInMemory;
  }

  public TableInfo setRecsInMemory(long recsInMemory) {
    this.recsInMemory = recsInMemory;
    setRecsInMemoryIsSet(true);
    return this;
  }

  public void unsetRecsInMemory() {
    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __RECSINMEMORY_ISSET_ID);
  }

  /** Returns true if field recsInMemory is set (has been assigned a value) and false otherwise */
  public boolean isSetRecsInMemory() {
    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __RECSINMEMORY_ISSET_ID);
  }

  public void setRecsInMemoryIsSet(boolean value) {
    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __RECSINMEMORY_ISSET_ID, value);
  }

  public int getTablets() {
    return this.tablets;
  }

  public TableInfo setTablets(int tablets) {
    this.tablets = tablets;
    setTabletsIsSet(true);
    return this;
  }

  public void unsetTablets() {
    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TABLETS_ISSET_ID);
  }

  /** Returns true if field tablets is set (has been assigned a value) and false otherwise */
  public boolean isSetTablets() {
    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TABLETS_ISSET_ID);
  }

  public void setTabletsIsSet(boolean value) {
    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TABLETS_ISSET_ID, value);
  }

  public int getOnlineTablets() {
    return this.onlineTablets;
  }

  public TableInfo setOnlineTablets(int onlineTablets) {
    this.onlineTablets = onlineTablets;
    setOnlineTabletsIsSet(true);
    return this;
  }

  public void unsetOnlineTablets() {
    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ONLINETABLETS_ISSET_ID);
  }

  /** Returns true if field onlineTablets is set (has been assigned a value) and false otherwise */
  public boolean isSetOnlineTablets() {
    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ONLINETABLETS_ISSET_ID);
  }

  public void setOnlineTabletsIsSet(boolean value) {
    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ONLINETABLETS_ISSET_ID, value);
  }

  public double getIngestRate() {
    return this.ingestRate;
  }

  public TableInfo setIngestRate(double ingestRate) {
    this.ingestRate = ingestRate;
    setIngestRateIsSet(true);
    return this;
  }

  public void unsetIngestRate() {
    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __INGESTRATE_ISSET_ID);
  }

  /** Returns true if field ingestRate is set (has been assigned a value) and false otherwise */
  public boolean isSetIngestRate() {
    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __INGESTRATE_ISSET_ID);
  }

  public void setIngestRateIsSet(boolean value) {
    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __INGESTRATE_ISSET_ID, value);
  }

  public double getIngestByteRate() {
    return this.ingestByteRate;
  }

  public TableInfo setIngestByteRate(double ingestByteRate) {
    this.ingestByteRate = ingestByteRate;
    setIngestByteRateIsSet(true);
    return this;
  }

  public void unsetIngestByteRate() {
    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __INGESTBYTERATE_ISSET_ID);
  }

  /** Returns true if field ingestByteRate is set (has been assigned a value) and false otherwise */
  public boolean isSetIngestByteRate() {
    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __INGESTBYTERATE_ISSET_ID);
  }

  public void setIngestByteRateIsSet(boolean value) {
    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __INGESTBYTERATE_ISSET_ID, value);
  }

  public double getQueryRate() {
    return this.queryRate;
  }

  public TableInfo setQueryRate(double queryRate) {
    this.queryRate = queryRate;
    setQueryRateIsSet(true);
    return this;
  }

  public void unsetQueryRate() {
    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __QUERYRATE_ISSET_ID);
  }

  /** Returns true if field queryRate is set (has been assigned a value) and false otherwise */
  public boolean isSetQueryRate() {
    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __QUERYRATE_ISSET_ID);
  }

  public void setQueryRateIsSet(boolean value) {
    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __QUERYRATE_ISSET_ID, value);
  }

  public double getQueryByteRate() {
    return this.queryByteRate;
  }

  public TableInfo setQueryByteRate(double queryByteRate) {
    this.queryByteRate = queryByteRate;
    setQueryByteRateIsSet(true);
    return this;
  }

  public void unsetQueryByteRate() {
    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __QUERYBYTERATE_ISSET_ID);
  }

  /** Returns true if field queryByteRate is set (has been assigned a value) and false otherwise */
  public boolean isSetQueryByteRate() {
    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __QUERYBYTERATE_ISSET_ID);
  }

  public void setQueryByteRateIsSet(boolean value) {
    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __QUERYBYTERATE_ISSET_ID, value);
  }

  @org.apache.thrift.annotation.Nullable
  public Compacting getMinors() {
    return this.minors;
  }

  public TableInfo setMinors(@org.apache.thrift.annotation.Nullable Compacting minors) {
    this.minors = minors;
    return this;
  }

  public void unsetMinors() {
    this.minors = null;
  }

  /** Returns true if field minors is set (has been assigned a value) and false otherwise */
  public boolean isSetMinors() {
    return this.minors != null;
  }

  public void setMinorsIsSet(boolean value) {
    if (!value) {
      this.minors = null;
    }
  }

  @org.apache.thrift.annotation.Nullable
  public Compacting getMajors() {
    return this.majors;
  }

  public TableInfo setMajors(@org.apache.thrift.annotation.Nullable Compacting majors) {
    this.majors = majors;
    return this;
  }

  public void unsetMajors() {
    this.majors = null;
  }

  /** Returns true if field majors is set (has been assigned a value) and false otherwise */
  public boolean isSetMajors() {
    return this.majors != null;
  }

  public void setMajorsIsSet(boolean value) {
    if (!value) {
      this.majors = null;
    }
  }

  @org.apache.thrift.annotation.Nullable
  public Compacting getScans() {
    return this.scans;
  }

  public TableInfo setScans(@org.apache.thrift.annotation.Nullable Compacting scans) {
    this.scans = scans;
    return this;
  }

  public void unsetScans() {
    this.scans = null;
  }

  /** Returns true if field scans is set (has been assigned a value) and false otherwise */
  public boolean isSetScans() {
    return this.scans != null;
  }

  public void setScansIsSet(boolean value) {
    if (!value) {
      this.scans = null;
    }
  }

  public double getScanRate() {
    return this.scanRate;
  }

  public TableInfo setScanRate(double scanRate) {
    this.scanRate = scanRate;
    setScanRateIsSet(true);
    return this;
  }

  public void unsetScanRate() {
    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SCANRATE_ISSET_ID);
  }

  /** Returns true if field scanRate is set (has been assigned a value) and false otherwise */
  public boolean isSetScanRate() {
    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SCANRATE_ISSET_ID);
  }

  public void setScanRateIsSet(boolean value) {
    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SCANRATE_ISSET_ID, value);
  }

  @Override
  public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
    switch (field) {
    case RECS:
      if (value == null) {
        unsetRecs();
      } else {
        setRecs((java.lang.Long)value);
      }
      break;

    case RECS_IN_MEMORY:
      if (value == null) {
        unsetRecsInMemory();
      } else {
        setRecsInMemory((java.lang.Long)value);
      }
      break;

    case TABLETS:
      if (value == null) {
        unsetTablets();
      } else {
        setTablets((java.lang.Integer)value);
      }
      break;

    case ONLINE_TABLETS:
      if (value == null) {
        unsetOnlineTablets();
      } else {
        setOnlineTablets((java.lang.Integer)value);
      }
      break;

    case INGEST_RATE:
      if (value == null) {
        unsetIngestRate();
      } else {
        setIngestRate((java.lang.Double)value);
      }
      break;

    case INGEST_BYTE_RATE:
      if (value == null) {
        unsetIngestByteRate();
      } else {
        setIngestByteRate((java.lang.Double)value);
      }
      break;

    case QUERY_RATE:
      if (value == null) {
        unsetQueryRate();
      } else {
        setQueryRate((java.lang.Double)value);
      }
      break;

    case QUERY_BYTE_RATE:
      if (value == null) {
        unsetQueryByteRate();
      } else {
        setQueryByteRate((java.lang.Double)value);
      }
      break;

    case MINORS:
      if (value == null) {
        unsetMinors();
      } else {
        setMinors((Compacting)value);
      }
      break;

    case MAJORS:
      if (value == null) {
        unsetMajors();
      } else {
        setMajors((Compacting)value);
      }
      break;

    case SCANS:
      if (value == null) {
        unsetScans();
      } else {
        setScans((Compacting)value);
      }
      break;

    case SCAN_RATE:
      if (value == null) {
        unsetScanRate();
      } else {
        setScanRate((java.lang.Double)value);
      }
      break;

    }
  }

  @org.apache.thrift.annotation.Nullable
  @Override
  public java.lang.Object getFieldValue(_Fields field) {
    switch (field) {
    case RECS:
      return getRecs();

    case RECS_IN_MEMORY:
      return getRecsInMemory();

    case TABLETS:
      return getTablets();

    case ONLINE_TABLETS:
      return getOnlineTablets();

    case INGEST_RATE:
      return getIngestRate();

    case INGEST_BYTE_RATE:
      return getIngestByteRate();

    case QUERY_RATE:
      return getQueryRate();

    case QUERY_BYTE_RATE:
      return getQueryByteRate();

    case MINORS:
      return getMinors();

    case MAJORS:
      return getMajors();

    case SCANS:
      return getScans();

    case SCAN_RATE:
      return getScanRate();

    }
    throw new java.lang.IllegalStateException();
  }

  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
  @Override
  public boolean isSet(_Fields field) {
    if (field == null) {
      throw new java.lang.IllegalArgumentException();
    }

    switch (field) {
    case RECS:
      return isSetRecs();
    case RECS_IN_MEMORY:
      return isSetRecsInMemory();
    case TABLETS:
      return isSetTablets();
    case ONLINE_TABLETS:
      return isSetOnlineTablets();
    case INGEST_RATE:
      return isSetIngestRate();
    case INGEST_BYTE_RATE:
      return isSetIngestByteRate();
    case QUERY_RATE:
      return isSetQueryRate();
    case QUERY_BYTE_RATE:
      return isSetQueryByteRate();
    case MINORS:
      return isSetMinors();
    case MAJORS:
      return isSetMajors();
    case SCANS:
      return isSetScans();
    case SCAN_RATE:
      return isSetScanRate();
    }
    throw new java.lang.IllegalStateException();
  }

  @Override
  public boolean equals(java.lang.Object that) {
    if (that instanceof TableInfo)
      return this.equals((TableInfo)that);
    return false;
  }

  public boolean equals(TableInfo that) {
    if (that == null)
      return false;
    if (this == that)
      return true;

    boolean this_present_recs = true;
    boolean that_present_recs = true;
    if (this_present_recs || that_present_recs) {
      if (!(this_present_recs && that_present_recs))
        return false;
      if (this.recs != that.recs)
        return false;
    }

    boolean this_present_recsInMemory = true;
    boolean that_present_recsInMemory = true;
    if (this_present_recsInMemory || that_present_recsInMemory) {
      if (!(this_present_recsInMemory && that_present_recsInMemory))
        return false;
      if (this.recsInMemory != that.recsInMemory)
        return false;
    }

    boolean this_present_tablets = true;
    boolean that_present_tablets = true;
    if (this_present_tablets || that_present_tablets) {
      if (!(this_present_tablets && that_present_tablets))
        return false;
      if (this.tablets != that.tablets)
        return false;
    }

    boolean this_present_onlineTablets = true;
    boolean that_present_onlineTablets = true;
    if (this_present_onlineTablets || that_present_onlineTablets) {
      if (!(this_present_onlineTablets && that_present_onlineTablets))
        return false;
      if (this.onlineTablets != that.onlineTablets)
        return false;
    }

    boolean this_present_ingestRate = true;
    boolean that_present_ingestRate = true;
    if (this_present_ingestRate || that_present_ingestRate) {
      if (!(this_present_ingestRate && that_present_ingestRate))
        return false;
      if (this.ingestRate != that.ingestRate)
        return false;
    }

    boolean this_present_ingestByteRate = true;
    boolean that_present_ingestByteRate = true;
    if (this_present_ingestByteRate || that_present_ingestByteRate) {
      if (!(this_present_ingestByteRate && that_present_ingestByteRate))
        return false;
      if (this.ingestByteRate != that.ingestByteRate)
        return false;
    }

    boolean this_present_queryRate = true;
    boolean that_present_queryRate = true;
    if (this_present_queryRate || that_present_queryRate) {
      if (!(this_present_queryRate && that_present_queryRate))
        return false;
      if (this.queryRate != that.queryRate)
        return false;
    }

    boolean this_present_queryByteRate = true;
    boolean that_present_queryByteRate = true;
    if (this_present_queryByteRate || that_present_queryByteRate) {
      if (!(this_present_queryByteRate && that_present_queryByteRate))
        return false;
      if (this.queryByteRate != that.queryByteRate)
        return false;
    }

    boolean this_present_minors = true && this.isSetMinors();
    boolean that_present_minors = true && that.isSetMinors();
    if (this_present_minors || that_present_minors) {
      if (!(this_present_minors && that_present_minors))
        return false;
      if (!this.minors.equals(that.minors))
        return false;
    }

    boolean this_present_majors = true && this.isSetMajors();
    boolean that_present_majors = true && that.isSetMajors();
    if (this_present_majors || that_present_majors) {
      if (!(this_present_majors && that_present_majors))
        return false;
      if (!this.majors.equals(that.majors))
        return false;
    }

    boolean this_present_scans = true && this.isSetScans();
    boolean that_present_scans = true && that.isSetScans();
    if (this_present_scans || that_present_scans) {
      if (!(this_present_scans && that_present_scans))
        return false;
      if (!this.scans.equals(that.scans))
        return false;
    }

    boolean this_present_scanRate = true;
    boolean that_present_scanRate = true;
    if (this_present_scanRate || that_present_scanRate) {
      if (!(this_present_scanRate && that_present_scanRate))
        return false;
      if (this.scanRate != that.scanRate)
        return false;
    }

    return true;
  }

  @Override
  public int hashCode() {
    int hashCode = 1;

    hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(recs);

    hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(recsInMemory);

    hashCode = hashCode * 8191 + tablets;

    hashCode = hashCode * 8191 + onlineTablets;

    hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(ingestRate);

    hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(ingestByteRate);

    hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(queryRate);

    hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(queryByteRate);

    hashCode = hashCode * 8191 + ((isSetMinors()) ? 131071 : 524287);
    if (isSetMinors())
      hashCode = hashCode * 8191 + minors.hashCode();

    hashCode = hashCode * 8191 + ((isSetMajors()) ? 131071 : 524287);
    if (isSetMajors())
      hashCode = hashCode * 8191 + majors.hashCode();

    hashCode = hashCode * 8191 + ((isSetScans()) ? 131071 : 524287);
    if (isSetScans())
      hashCode = hashCode * 8191 + scans.hashCode();

    hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(scanRate);

    return hashCode;
  }

  @Override
  public int compareTo(TableInfo other) {
    if (!getClass().equals(other.getClass())) {
      return getClass().getName().compareTo(other.getClass().getName());
    }

    int lastComparison = 0;

    lastComparison = java.lang.Boolean.compare(isSetRecs(), other.isSetRecs());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetRecs()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.recs, other.recs);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetRecsInMemory(), other.isSetRecsInMemory());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetRecsInMemory()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.recsInMemory, other.recsInMemory);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetTablets(), other.isSetTablets());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetTablets()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablets, other.tablets);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetOnlineTablets(), other.isSetOnlineTablets());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetOnlineTablets()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.onlineTablets, other.onlineTablets);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetIngestRate(), other.isSetIngestRate());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetIngestRate()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ingestRate, other.ingestRate);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetIngestByteRate(), other.isSetIngestByteRate());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetIngestByteRate()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ingestByteRate, other.ingestByteRate);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetQueryRate(), other.isSetQueryRate());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetQueryRate()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queryRate, other.queryRate);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetQueryByteRate(), other.isSetQueryByteRate());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetQueryByteRate()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queryByteRate, other.queryByteRate);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetMinors(), other.isSetMinors());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetMinors()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minors, other.minors);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetMajors(), other.isSetMajors());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetMajors()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.majors, other.majors);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetScans(), other.isSetScans());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetScans()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scans, other.scans);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetScanRate(), other.isSetScanRate());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetScanRate()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scanRate, other.scanRate);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }

  @org.apache.thrift.annotation.Nullable
  @Override
  public _Fields fieldForId(int fieldId) {
    return _Fields.findByThriftId(fieldId);
  }

  @Override
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    scheme(iprot).read(iprot, this);
  }

  @Override
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    scheme(oprot).write(oprot, this);
  }

  @Override
  public java.lang.String toString() {
    java.lang.StringBuilder sb = new java.lang.StringBuilder("TableInfo(");
    boolean first = true;

    sb.append("recs:");
    sb.append(this.recs);
    first = false;
    if (!first) sb.append(", ");
    sb.append("recsInMemory:");
    sb.append(this.recsInMemory);
    first = false;
    if (!first) sb.append(", ");
    sb.append("tablets:");
    sb.append(this.tablets);
    first = false;
    if (!first) sb.append(", ");
    sb.append("onlineTablets:");
    sb.append(this.onlineTablets);
    first = false;
    if (!first) sb.append(", ");
    sb.append("ingestRate:");
    sb.append(this.ingestRate);
    first = false;
    if (!first) sb.append(", ");
    sb.append("ingestByteRate:");
    sb.append(this.ingestByteRate);
    first = false;
    if (!first) sb.append(", ");
    sb.append("queryRate:");
    sb.append(this.queryRate);
    first = false;
    if (!first) sb.append(", ");
    sb.append("queryByteRate:");
    sb.append(this.queryByteRate);
    first = false;
    if (!first) sb.append(", ");
    sb.append("minors:");
    if (this.minors == null) {
      sb.append("null");
    } else {
      sb.append(this.minors);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("majors:");
    if (this.majors == null) {
      sb.append("null");
    } else {
      sb.append(this.majors);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("scans:");
    if (this.scans == null) {
      sb.append("null");
    } else {
      sb.append(this.scans);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("scanRate:");
    sb.append(this.scanRate);
    first = false;
    sb.append(")");
    return sb.toString();
  }

  public void validate() throws org.apache.thrift.TException {
    // check for required fields
    // check for sub-struct validity
    if (minors != null) {
      minors.validate();
    }
    if (majors != null) {
      majors.validate();
    }
    if (scans != null) {
      scans.validate();
    }
  }

  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, java.lang.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_bitfield = 0;
      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);
    }
  }

  private static class TableInfoStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
    @Override
    public TableInfoStandardScheme getScheme() {
      return new TableInfoStandardScheme();
    }
  }

  private static class TableInfoStandardScheme extends org.apache.thrift.scheme.StandardScheme<TableInfo> {

    @Override
    public void read(org.apache.thrift.protocol.TProtocol iprot, TableInfo struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TField schemeField;
      iprot.readStructBegin();
      while (true)
      {
        schemeField = iprot.readFieldBegin();
        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
          break;
        }
        switch (schemeField.id) {
          case 1: // RECS
            if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
              struct.recs = iprot.readI64();
              struct.setRecsIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 2: // RECS_IN_MEMORY
            if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
              struct.recsInMemory = iprot.readI64();
              struct.setRecsInMemoryIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 3: // TABLETS
            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
              struct.tablets = iprot.readI32();
              struct.setTabletsIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 4: // ONLINE_TABLETS
            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
              struct.onlineTablets = iprot.readI32();
              struct.setOnlineTabletsIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 5: // INGEST_RATE
            if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) {
              struct.ingestRate = iprot.readDouble();
              struct.setIngestRateIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 6: // INGEST_BYTE_RATE
            if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) {
              struct.ingestByteRate = iprot.readDouble();
              struct.setIngestByteRateIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 7: // QUERY_RATE
            if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) {
              struct.queryRate = iprot.readDouble();
              struct.setQueryRateIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 8: // QUERY_BYTE_RATE
            if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) {
              struct.queryByteRate = iprot.readDouble();
              struct.setQueryByteRateIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 9: // MINORS
            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
              struct.minors = new Compacting();
              struct.minors.read(iprot);
              struct.setMinorsIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 10: // MAJORS
            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
              struct.majors = new Compacting();
              struct.majors.read(iprot);
              struct.setMajorsIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 11: // SCANS
            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
              struct.scans = new Compacting();
              struct.scans.read(iprot);
              struct.setScansIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 12: // SCAN_RATE
            if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) {
              struct.scanRate = iprot.readDouble();
              struct.setScanRateIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          default:
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
        }
        iprot.readFieldEnd();
      }
      iprot.readStructEnd();

      // check for required fields of primitive type, which can't be checked in the validate method
      struct.validate();
    }

    @Override
    public void write(org.apache.thrift.protocol.TProtocol oprot, TableInfo struct) throws org.apache.thrift.TException {
      struct.validate();

      oprot.writeStructBegin(STRUCT_DESC);
      oprot.writeFieldBegin(RECS_FIELD_DESC);
      oprot.writeI64(struct.recs);
      oprot.writeFieldEnd();
      oprot.writeFieldBegin(RECS_IN_MEMORY_FIELD_DESC);
      oprot.writeI64(struct.recsInMemory);
      oprot.writeFieldEnd();
      oprot.writeFieldBegin(TABLETS_FIELD_DESC);
      oprot.writeI32(struct.tablets);
      oprot.writeFieldEnd();
      oprot.writeFieldBegin(ONLINE_TABLETS_FIELD_DESC);
      oprot.writeI32(struct.onlineTablets);
      oprot.writeFieldEnd();
      oprot.writeFieldBegin(INGEST_RATE_FIELD_DESC);
      oprot.writeDouble(struct.ingestRate);
      oprot.writeFieldEnd();
      oprot.writeFieldBegin(INGEST_BYTE_RATE_FIELD_DESC);
      oprot.writeDouble(struct.ingestByteRate);
      oprot.writeFieldEnd();
      oprot.writeFieldBegin(QUERY_RATE_FIELD_DESC);
      oprot.writeDouble(struct.queryRate);
      oprot.writeFieldEnd();
      oprot.writeFieldBegin(QUERY_BYTE_RATE_FIELD_DESC);
      oprot.writeDouble(struct.queryByteRate);
      oprot.writeFieldEnd();
      if (struct.minors != null) {
        oprot.writeFieldBegin(MINORS_FIELD_DESC);
        struct.minors.write(oprot);
        oprot.writeFieldEnd();
      }
      if (struct.majors != null) {
        oprot.writeFieldBegin(MAJORS_FIELD_DESC);
        struct.majors.write(oprot);
        oprot.writeFieldEnd();
      }
      if (struct.scans != null) {
        oprot.writeFieldBegin(SCANS_FIELD_DESC);
        struct.scans.write(oprot);
        oprot.writeFieldEnd();
      }
      oprot.writeFieldBegin(SCAN_RATE_FIELD_DESC);
      oprot.writeDouble(struct.scanRate);
      oprot.writeFieldEnd();
      oprot.writeFieldStop();
      oprot.writeStructEnd();
    }

  }

  private static class TableInfoTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
    @Override
    public TableInfoTupleScheme getScheme() {
      return new TableInfoTupleScheme();
    }
  }

  private static class TableInfoTupleScheme extends org.apache.thrift.scheme.TupleScheme<TableInfo> {

    @Override
    public void write(org.apache.thrift.protocol.TProtocol prot, TableInfo struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      java.util.BitSet optionals = new java.util.BitSet();
      if (struct.isSetRecs()) {
        optionals.set(0);
      }
      if (struct.isSetRecsInMemory()) {
        optionals.set(1);
      }
      if (struct.isSetTablets()) {
        optionals.set(2);
      }
      if (struct.isSetOnlineTablets()) {
        optionals.set(3);
      }
      if (struct.isSetIngestRate()) {
        optionals.set(4);
      }
      if (struct.isSetIngestByteRate()) {
        optionals.set(5);
      }
      if (struct.isSetQueryRate()) {
        optionals.set(6);
      }
      if (struct.isSetQueryByteRate()) {
        optionals.set(7);
      }
      if (struct.isSetMinors()) {
        optionals.set(8);
      }
      if (struct.isSetMajors()) {
        optionals.set(9);
      }
      if (struct.isSetScans()) {
        optionals.set(10);
      }
      if (struct.isSetScanRate()) {
        optionals.set(11);
      }
      oprot.writeBitSet(optionals, 12);
      if (struct.isSetRecs()) {
        oprot.writeI64(struct.recs);
      }
      if (struct.isSetRecsInMemory()) {
        oprot.writeI64(struct.recsInMemory);
      }
      if (struct.isSetTablets()) {
        oprot.writeI32(struct.tablets);
      }
      if (struct.isSetOnlineTablets()) {
        oprot.writeI32(struct.onlineTablets);
      }
      if (struct.isSetIngestRate()) {
        oprot.writeDouble(struct.ingestRate);
      }
      if (struct.isSetIngestByteRate()) {
        oprot.writeDouble(struct.ingestByteRate);
      }
      if (struct.isSetQueryRate()) {
        oprot.writeDouble(struct.queryRate);
      }
      if (struct.isSetQueryByteRate()) {
        oprot.writeDouble(struct.queryByteRate);
      }
      if (struct.isSetMinors()) {
        struct.minors.write(oprot);
      }
      if (struct.isSetMajors()) {
        struct.majors.write(oprot);
      }
      if (struct.isSetScans()) {
        struct.scans.write(oprot);
      }
      if (struct.isSetScanRate()) {
        oprot.writeDouble(struct.scanRate);
      }
    }

    @Override
    public void read(org.apache.thrift.protocol.TProtocol prot, TableInfo struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      java.util.BitSet incoming = iprot.readBitSet(12);
      if (incoming.get(0)) {
        struct.recs = iprot.readI64();
        struct.setRecsIsSet(true);
      }
      if (incoming.get(1)) {
        struct.recsInMemory = iprot.readI64();
        struct.setRecsInMemoryIsSet(true);
      }
      if (incoming.get(2)) {
        struct.tablets = iprot.readI32();
        struct.setTabletsIsSet(true);
      }
      if (incoming.get(3)) {
        struct.onlineTablets = iprot.readI32();
        struct.setOnlineTabletsIsSet(true);
      }
      if (incoming.get(4)) {
        struct.ingestRate = iprot.readDouble();
        struct.setIngestRateIsSet(true);
      }
      if (incoming.get(5)) {
        struct.ingestByteRate = iprot.readDouble();
        struct.setIngestByteRateIsSet(true);
      }
      if (incoming.get(6)) {
        struct.queryRate = iprot.readDouble();
        struct.setQueryRateIsSet(true);
      }
      if (incoming.get(7)) {
        struct.queryByteRate = iprot.readDouble();
        struct.setQueryByteRateIsSet(true);
      }
      if (incoming.get(8)) {
        struct.minors = new Compacting();
        struct.minors.read(iprot);
        struct.setMinorsIsSet(true);
      }
      if (incoming.get(9)) {
        struct.majors = new Compacting();
        struct.majors.read(iprot);
        struct.setMajorsIsSet(true);
      }
      if (incoming.get(10)) {
        struct.scans = new Compacting();
        struct.scans.read(iprot);
        struct.setScansIsSet(true);
      }
      if (incoming.get(11)) {
        struct.scanRate = iprot.readDouble();
        struct.setScanRateIsSet(true);
      }
    }
  }

  private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
    return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
  }
  private static void unusedMethod() {}
}

