PageRenderTime 44ms CodeModel.GetById 20ms RepoModel.GetById 0ms 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
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
  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. package org.apache.hadoop.hive.metastore.model;
  22. import java.util.List;
  23. /**
  24. * Represents a Hive type
  25. *
  26. */
  27. public class MType {
  28. private String name;
  29. private String type1;
  30. private String type2;
  31. private List<MFieldSchema> fields;
  32. /**
  33. * @param name
  34. * @param type1
  35. * @param type2
  36. * @param fields
  37. */
  38. public MType(String name, String type1, String type2, List<MFieldSchema> fields) {
  39. this.name = name;
  40. this.type1 = type1;
  41. this.type2 = type2;
  42. this.fields = fields;
  43. }
  44. public MType() {}
  45. /**
  46. * @return the name
  47. */
  48. public String getName() {
  49. return name;
  50. }
  51. /**
  52. * @param name the name to set
  53. */
  54. public void setName(String name) {
  55. this.name = name;
  56. }
  57. /**
  58. * @return the type1
  59. */
  60. public String getType1() {
  61. return type1;
  62. }
  63. /**
  64. * @param type1 the type1 to set
  65. */
  66. public void setType1(String type1) {
  67. this.type1 = type1;
  68. }
  69. /**
  70. * @return the type2
  71. */
  72. public String getType2() {
  73. return type2;
  74. }
  75. /**
  76. * @param type2 the type2 to set
  77. */
  78. public void setType2(String type2) {
  79. this.type2 = type2;
  80. }
  81. /**
  82. * @return the fields
  83. */
  84. public List<MFieldSchema> getFields() {
  85. return fields;
  86. }
  87. /**
  88. * @param fields the fields to set
  89. */
  90. public void setFields(List<MFieldSchema> fields) {
  91. this.fields = fields;
  92. }
  93. }