PageRenderTime 15ms CodeModel.GetById 10ms app.highlight 3ms RepoModel.GetById 1ms 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
 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
19package org.apache.hadoop.hive.ql.plan;
20
21import java.io.Serializable;
22
23/**
24 * CreateTableLikeDesc.
25 *
26 */
27@Explain(displayName = "Create Table")
28public class CreateTableLikeDesc extends DDLDesc implements Serializable {
29  private static final long serialVersionUID = 1L;
30  String tableName;
31  boolean isExternal;
32  String location;
33  boolean ifNotExists;
34  String likeTableName;
35
36  public CreateTableLikeDesc() {
37  }
38
39  public CreateTableLikeDesc(String tableName, boolean isExternal,
40      String location, boolean ifNotExists, String likeTableName) {
41    this.tableName = tableName;
42    this.isExternal = isExternal;
43    this.location = location;
44    this.ifNotExists = ifNotExists;
45    this.likeTableName = likeTableName;
46  }
47
48  @Explain(displayName = "if not exists")
49  public boolean getIfNotExists() {
50    return ifNotExists;
51  }
52
53  public void setIfNotExists(boolean ifNotExists) {
54    this.ifNotExists = ifNotExists;
55  }
56
57  @Explain(displayName = "name")
58  public String getTableName() {
59    return tableName;
60  }
61
62  public void setTableName(String tableName) {
63    this.tableName = tableName;
64  }
65
66  @Explain(displayName = "location")
67  public String getLocation() {
68    return location;
69  }
70
71  public void setLocation(String location) {
72    this.location = location;
73  }
74
75  @Explain(displayName = "isExternal")
76  public boolean isExternal() {
77    return isExternal;
78  }
79
80  public void setExternal(boolean isExternal) {
81    this.isExternal = isExternal;
82  }
83
84  @Explain(displayName = "like")
85  public String getLikeTableName() {
86    return likeTableName;
87  }
88
89  public void setLikeTableName(String likeTableName) {
90    this.likeTableName = likeTableName;
91  }
92
93}