aboutsummaryrefslogtreecommitdiff
path: root/sql/hive-thriftserver/src/gen/java/org/apache/hive/service/cli/thrift/TTypeId.java
diff options
context:
space:
mode:
authorDavies Liu <davies@databricks.com>2016-04-29 09:32:42 -0700
committerReynold Xin <rxin@databricks.com>2016-04-29 09:32:42 -0700
commit7feeb82cb7f462e44f7e698c7c3b6ac3a77aade4 (patch)
tree74935040264de3bb4453ec030aa6b94a4577d171 /sql/hive-thriftserver/src/gen/java/org/apache/hive/service/cli/thrift/TTypeId.java
parentb6fa7e5934ca5d1c3c757629833396b810894067 (diff)
downloadspark-7feeb82cb7f462e44f7e698c7c3b6ac3a77aade4.tar.gz
spark-7feeb82cb7f462e44f7e698c7c3b6ac3a77aade4.tar.bz2
spark-7feeb82cb7f462e44f7e698c7c3b6ac3a77aade4.zip
[SPARK-14987][SQL] inline hive-service (cli) into sql/hive-thriftserver
## What changes were proposed in this pull request? This PR copy the thrift-server from hive-service-1.2 (including TCLIService.thrift and generated Java source code) into sql/hive-thriftserver, so we can do further cleanup and improvements. ## How was this patch tested? Existing tests. Author: Davies Liu <davies@databricks.com> Closes #12764 from davies/thrift_server.
Diffstat (limited to 'sql/hive-thriftserver/src/gen/java/org/apache/hive/service/cli/thrift/TTypeId.java')
-rw-r--r--sql/hive-thriftserver/src/gen/java/org/apache/hive/service/cli/thrift/TTypeId.java105
1 files changed, 105 insertions, 0 deletions
diff --git a/sql/hive-thriftserver/src/gen/java/org/apache/hive/service/cli/thrift/TTypeId.java b/sql/hive-thriftserver/src/gen/java/org/apache/hive/service/cli/thrift/TTypeId.java
new file mode 100644
index 0000000000..40f0589462
--- /dev/null
+++ b/sql/hive-thriftserver/src/gen/java/org/apache/hive/service/cli/thrift/TTypeId.java
@@ -0,0 +1,105 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+package org.apache.hive.service.cli.thrift;
+
+
+import java.util.Map;
+import java.util.HashMap;
+import org.apache.thrift.TEnum;
+
+public enum TTypeId implements org.apache.thrift.TEnum {
+ BOOLEAN_TYPE(0),
+ TINYINT_TYPE(1),
+ SMALLINT_TYPE(2),
+ INT_TYPE(3),
+ BIGINT_TYPE(4),
+ FLOAT_TYPE(5),
+ DOUBLE_TYPE(6),
+ STRING_TYPE(7),
+ TIMESTAMP_TYPE(8),
+ BINARY_TYPE(9),
+ ARRAY_TYPE(10),
+ MAP_TYPE(11),
+ STRUCT_TYPE(12),
+ UNION_TYPE(13),
+ USER_DEFINED_TYPE(14),
+ DECIMAL_TYPE(15),
+ NULL_TYPE(16),
+ DATE_TYPE(17),
+ VARCHAR_TYPE(18),
+ CHAR_TYPE(19),
+ INTERVAL_YEAR_MONTH_TYPE(20),
+ INTERVAL_DAY_TIME_TYPE(21);
+
+ private final int value;
+
+ private TTypeId(int value) {
+ this.value = value;
+ }
+
+ /**
+ * Get the integer value of this enum value, as defined in the Thrift IDL.
+ */
+ public int getValue() {
+ return value;
+ }
+
+ /**
+ * Find a the enum type by its integer value, as defined in the Thrift IDL.
+ * @return null if the value is not found.
+ */
+ public static TTypeId findByValue(int value) {
+ switch (value) {
+ case 0:
+ return BOOLEAN_TYPE;
+ case 1:
+ return TINYINT_TYPE;
+ case 2:
+ return SMALLINT_TYPE;
+ case 3:
+ return INT_TYPE;
+ case 4:
+ return BIGINT_TYPE;
+ case 5:
+ return FLOAT_TYPE;
+ case 6:
+ return DOUBLE_TYPE;
+ case 7:
+ return STRING_TYPE;
+ case 8:
+ return TIMESTAMP_TYPE;
+ case 9:
+ return BINARY_TYPE;
+ case 10:
+ return ARRAY_TYPE;
+ case 11:
+ return MAP_TYPE;
+ case 12:
+ return STRUCT_TYPE;
+ case 13:
+ return UNION_TYPE;
+ case 14:
+ return USER_DEFINED_TYPE;
+ case 15:
+ return DECIMAL_TYPE;
+ case 16:
+ return NULL_TYPE;
+ case 17:
+ return DATE_TYPE;
+ case 18:
+ return VARCHAR_TYPE;
+ case 19:
+ return CHAR_TYPE;
+ case 20:
+ return INTERVAL_YEAR_MONTH_TYPE;
+ case 21:
+ return INTERVAL_DAY_TIME_TYPE;
+ default:
+ return null;
+ }
+ }
+}