PageRenderTime 20ms CodeModel.GetById 15ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/release-0.0.0-rc0/hive/external/metastore/src/model/org/apache/hadoop/hive/metastore/model/MType.java

#
Java | 105 lines | 39 code | 12 blank | 54 comment | 0 complexity | 1863a98e22a5546d7efe99db3ab057d5 MD5 | raw file
  1/**
  2 * Licensed to the Apache Software Foundation (ASF) under one
  3 * or more contributor license agreements.  See the NOTICE file
  4 * distributed with this work for additional information
  5 * regarding copyright ownership.  The ASF licenses this file
  6 * to you under the Apache License, Version 2.0 (the
  7 * "License"); you may not use this file except in compliance
  8 * with the License.  You may obtain a copy of the License at
  9 *
 10 *     http://www.apache.org/licenses/LICENSE-2.0
 11 *
 12 * Unless required by applicable law or agreed to in writing, software
 13 * distributed under the License is distributed on an "AS IS" BASIS,
 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 15 * See the License for the specific language governing permissions and
 16 * limitations under the License.
 17 */
 18
 19/**
 20 * 
 21 */
 22package org.apache.hadoop.hive.metastore.model;
 23
 24import java.util.List;
 25
 26/**
 27 * Represents a Hive type
 28 *
 29 */
 30public class MType {
 31  private String name;
 32  private String type1;
 33  private String type2;
 34  private List<MFieldSchema> fields;
 35  
 36  /**
 37   * @param name
 38   * @param type1
 39   * @param type2
 40   * @param fields
 41   */
 42  public MType(String name, String type1, String type2, List<MFieldSchema> fields) {
 43    this.name = name;
 44    this.type1 = type1;
 45    this.type2 = type2;
 46    this.fields = fields;
 47  }
 48
 49  public MType() {}
 50  
 51  /**
 52   * @return the name
 53   */
 54  public String getName() {
 55    return name;
 56  }
 57  /**
 58   * @param name the name to set
 59   */
 60  public void setName(String name) {
 61    this.name = name;
 62  }
 63  /**
 64   * @return the type1
 65   */
 66  public String getType1() {
 67    return type1;
 68  }
 69
 70  /**
 71   * @param type1 the type1 to set
 72   */
 73  public void setType1(String type1) {
 74    this.type1 = type1;
 75  }
 76
 77  /**
 78   * @return the type2
 79   */
 80  public String getType2() {
 81    return type2;
 82  }
 83
 84  /**
 85   * @param type2 the type2 to set
 86   */
 87  public void setType2(String type2) {
 88    this.type2 = type2;
 89  }
 90
 91  /**
 92   * @return the fields
 93   */
 94  public List<MFieldSchema> getFields() {
 95    return fields;
 96  }
 97  /**
 98   * @param fields the fields to set
 99   */
100  public void setFields(List<MFieldSchema> fields) {
101    this.fields = fields;
102  }
103  
104  
105}