PageRenderTime 45ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/release-0.0.0-rc0/hive/external/ql/src/java/org/apache/hadoop/hive/ql/plan/CreateTableLikeDesc.java

#
Java | 93 lines | 56 code | 16 blank | 21 comment | 0 complexity | 25cf6b5da5680a02e8b7c39105b0dc0b 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. package org.apache.hadoop.hive.ql.plan;
  19. import java.io.Serializable;
  20. /**
  21. * CreateTableLikeDesc.
  22. *
  23. */
  24. @Explain(displayName = "Create Table")
  25. public class CreateTableLikeDesc extends DDLDesc implements Serializable {
  26. private static final long serialVersionUID = 1L;
  27. String tableName;
  28. boolean isExternal;
  29. String location;
  30. boolean ifNotExists;
  31. String likeTableName;
  32. public CreateTableLikeDesc() {
  33. }
  34. public CreateTableLikeDesc(String tableName, boolean isExternal,
  35. String location, boolean ifNotExists, String likeTableName) {
  36. this.tableName = tableName;
  37. this.isExternal = isExternal;
  38. this.location = location;
  39. this.ifNotExists = ifNotExists;
  40. this.likeTableName = likeTableName;
  41. }
  42. @Explain(displayName = "if not exists")
  43. public boolean getIfNotExists() {
  44. return ifNotExists;
  45. }
  46. public void setIfNotExists(boolean ifNotExists) {
  47. this.ifNotExists = ifNotExists;
  48. }
  49. @Explain(displayName = "name")
  50. public String getTableName() {
  51. return tableName;
  52. }
  53. public void setTableName(String tableName) {
  54. this.tableName = tableName;
  55. }
  56. @Explain(displayName = "location")
  57. public String getLocation() {
  58. return location;
  59. }
  60. public void setLocation(String location) {
  61. this.location = location;
  62. }
  63. @Explain(displayName = "isExternal")
  64. public boolean isExternal() {
  65. return isExternal;
  66. }
  67. public void setExternal(boolean isExternal) {
  68. this.isExternal = isExternal;
  69. }
  70. @Explain(displayName = "like")
  71. public String getLikeTableName() {
  72. return likeTableName;
  73. }
  74. public void setLikeTableName(String likeTableName) {
  75. this.likeTableName = likeTableName;
  76. }
  77. }