PageRenderTime 40ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Java | 102 lines | 41 code | 13 blank | 48 comment | 0 complexity | 0117408895468ab17ce7eee06ea2e175 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. import org.apache.hadoop.fs.Path;
  21. /**
  22. * ShowFunctionsDesc.
  23. *
  24. */
  25. @Explain(displayName = "Show Functions")
  26. public class ShowFunctionsDesc extends DDLDesc implements Serializable {
  27. private static final long serialVersionUID = 1L;
  28. String pattern;
  29. String resFile;
  30. /**
  31. * table name for the result of show tables.
  32. */
  33. private static final String table = "show";
  34. /**
  35. * thrift ddl for the result of show tables.
  36. */
  37. private static final String schema = "tab_name#string";
  38. public String getTable() {
  39. return table;
  40. }
  41. public String getSchema() {
  42. return schema;
  43. }
  44. public ShowFunctionsDesc() {
  45. }
  46. /**
  47. * @param resFile
  48. */
  49. public ShowFunctionsDesc(Path resFile) {
  50. this.resFile = resFile.toString();
  51. pattern = null;
  52. }
  53. /**
  54. * @param pattern
  55. * names of tables to show
  56. */
  57. public ShowFunctionsDesc(Path resFile, String pattern) {
  58. this.resFile = resFile.toString();
  59. this.pattern = pattern;
  60. }
  61. /**
  62. * @return the pattern
  63. */
  64. @Explain(displayName = "pattern")
  65. public String getPattern() {
  66. return pattern;
  67. }
  68. /**
  69. * @param pattern
  70. * the pattern to set
  71. */
  72. public void setPattern(String pattern) {
  73. this.pattern = pattern;
  74. }
  75. /**
  76. * @return the resFile
  77. */
  78. @Explain(displayName = "result file", normalExplain = false)
  79. public String getResFile() {
  80. return resFile;
  81. }
  82. /**
  83. * @param resFile
  84. * the resFile to set
  85. */
  86. public void setResFile(String resFile) {
  87. this.resFile = resFile;
  88. }
  89. }