@Override
  protected void checkType(_Fields setField, java.lang.Object value) throws java.lang.ClassCastException {
    switch (setField) {
      case BOOLEAN_STATS:
        if (value instanceof BooleanColumnStatsData) {
          break;
        }
        throw new java.lang.ClassCastException("Was expecting value of type BooleanColumnStatsData for field 'booleanStats', but got " + value.getClass().getSimpleName());
      case LONG_STATS:
        if (value instanceof LongColumnStatsData) {
          break;
        }
        throw new java.lang.ClassCastException("Was expecting value of type LongColumnStatsData for field 'longStats', but got " + value.getClass().getSimpleName());
      case DOUBLE_STATS:
        if (value instanceof DoubleColumnStatsData) {
          break;
        }
        throw new java.lang.ClassCastException("Was expecting value of type DoubleColumnStatsData for field 'doubleStats', but got " + value.getClass().getSimpleName());
      case STRING_STATS:
        if (value instanceof StringColumnStatsData) {
          break;
        }
        throw new java.lang.ClassCastException("Was expecting value of type StringColumnStatsData for field 'stringStats', but got " + value.getClass().getSimpleName());
      case BINARY_STATS:
        if (value instanceof BinaryColumnStatsData) {
          break;
        }
        throw new java.lang.ClassCastException("Was expecting value of type BinaryColumnStatsData for field 'binaryStats', but got " + value.getClass().getSimpleName());
      case DECIMAL_STATS:
        if (value instanceof DecimalColumnStatsData) {
          break;
        }
        throw new java.lang.ClassCastException("Was expecting value of type DecimalColumnStatsData for field 'decimalStats', but got " + value.getClass().getSimpleName());
      case DATE_STATS:
        if (value instanceof DateColumnStatsData) {
          break;
        }
        throw new java.lang.ClassCastException("Was expecting value of type DateColumnStatsData for field 'dateStats', but got " + value.getClass().getSimpleName());
      case TIMESTAMP_STATS:
        if (value instanceof TimestampColumnStatsData) {
          break;
        }
        throw new java.lang.ClassCastException("Was expecting value of type TimestampColumnStatsData for field 'timestampStats', but got " + value.getClass().getSimpleName());
      default:
        throw new java.lang.IllegalArgumentException("Unknown field id " + setField);
    }
  }
Find the _Fields constant that matches name, or null if its not found.
standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsData.java