sequel_impala 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +50 -0
  3. data/LICENSE +463 -0
  4. data/README.md +45 -0
  5. data/Rakefile +39 -0
  6. data/lib/driver/commons-collections-3.2.1.jar +0 -0
  7. data/lib/driver/commons-configuration-1.10.jar +0 -0
  8. data/lib/driver/commons-logging-1.2.jar +0 -0
  9. data/lib/driver/hadoop-auth-2.9.0.jar +0 -0
  10. data/lib/driver/hadoop-common-2.9.0.jar +0 -0
  11. data/lib/driver/hadoop-core-2.6.0.jar +0 -0
  12. data/lib/driver/hive-exec-1.1.0.jar +0 -0
  13. data/lib/driver/hive-jdbc-1.1.0.jar +0 -0
  14. data/lib/driver/hive-metastore-1.1.0.jar +0 -0
  15. data/lib/driver/hive-service-1.1.0.jar +0 -0
  16. data/lib/driver/httpclient-4.3.jar +0 -0
  17. data/lib/driver/httpcore-4.3.jar +0 -0
  18. data/lib/driver/libfb303-0.9.0.jar +0 -0
  19. data/lib/driver/log4j-1.2.17.jar +0 -0
  20. data/lib/driver/slf4j-api-1.7.5.jar +0 -0
  21. data/lib/driver/stax2-api-3.1.4.jar +0 -0
  22. data/lib/driver/woodstox-core-asl-4.4.1.jar +0 -0
  23. data/lib/impala.rb +55 -0
  24. data/lib/impala/connection.rb +180 -0
  25. data/lib/impala/cursor.rb +200 -0
  26. data/lib/impala/progress_reporter.rb +40 -0
  27. data/lib/impala/protocol.rb +8 -0
  28. data/lib/impala/protocol/beeswax_constants.rb +15 -0
  29. data/lib/impala/protocol/beeswax_service.rb +747 -0
  30. data/lib/impala/protocol/beeswax_types.rb +193 -0
  31. data/lib/impala/protocol/exec_stats_constants.rb +13 -0
  32. data/lib/impala/protocol/exec_stats_types.rb +133 -0
  33. data/lib/impala/protocol/facebook_service.rb +706 -0
  34. data/lib/impala/protocol/fb303_constants.rb +15 -0
  35. data/lib/impala/protocol/fb303_types.rb +25 -0
  36. data/lib/impala/protocol/hive_metastore_constants.rb +53 -0
  37. data/lib/impala/protocol/hive_metastore_types.rb +698 -0
  38. data/lib/impala/protocol/impala_hive_server2_service.rb +137 -0
  39. data/lib/impala/protocol/impala_service.rb +443 -0
  40. data/lib/impala/protocol/impala_service_constants.rb +13 -0
  41. data/lib/impala/protocol/impala_service_types.rb +192 -0
  42. data/lib/impala/protocol/status_constants.rb +13 -0
  43. data/lib/impala/protocol/status_types.rb +46 -0
  44. data/lib/impala/protocol/t_c_l_i_service.rb +1108 -0
  45. data/lib/impala/protocol/t_c_l_i_service_constants.rb +72 -0
  46. data/lib/impala/protocol/t_c_l_i_service_types.rb +1802 -0
  47. data/lib/impala/protocol/thrift_hive_metastore.rb +4707 -0
  48. data/lib/impala/protocol/types_constants.rb +13 -0
  49. data/lib/impala/protocol/types_types.rb +332 -0
  50. data/lib/impala/sasl_transport.rb +117 -0
  51. data/lib/impala/thrift_patch.rb +31 -0
  52. data/lib/impala/version.rb +3 -0
  53. data/lib/jdbc/hive2.rb +52 -0
  54. data/lib/jdbc/impala.rb +50 -0
  55. data/lib/rbhive.rb +8 -0
  56. data/lib/rbhive/connection.rb +150 -0
  57. data/lib/rbhive/explain_result.rb +46 -0
  58. data/lib/rbhive/result_set.rb +37 -0
  59. data/lib/rbhive/schema_definition.rb +86 -0
  60. data/lib/rbhive/t_c_l_i_connection.rb +466 -0
  61. data/lib/rbhive/t_c_l_i_result_set.rb +3 -0
  62. data/lib/rbhive/t_c_l_i_schema_definition.rb +87 -0
  63. data/lib/rbhive/table_schema.rb +122 -0
  64. data/lib/rbhive/version.rb +3 -0
  65. data/lib/sequel/adapters/impala.rb +220 -0
  66. data/lib/sequel/adapters/jdbc/hive2.rb +36 -0
  67. data/lib/sequel/adapters/jdbc/impala.rb +38 -0
  68. data/lib/sequel/adapters/rbhive.rb +177 -0
  69. data/lib/sequel/adapters/shared/impala.rb +808 -0
  70. data/lib/sequel/extensions/csv_to_parquet.rb +166 -0
  71. data/lib/thrift/facebook_service.rb +700 -0
  72. data/lib/thrift/fb303_constants.rb +9 -0
  73. data/lib/thrift/fb303_types.rb +19 -0
  74. data/lib/thrift/hive_metastore_constants.rb +41 -0
  75. data/lib/thrift/hive_metastore_types.rb +630 -0
  76. data/lib/thrift/hive_service_constants.rb +13 -0
  77. data/lib/thrift/hive_service_types.rb +72 -0
  78. data/lib/thrift/queryplan_constants.rb +13 -0
  79. data/lib/thrift/queryplan_types.rb +261 -0
  80. data/lib/thrift/sasl_client_transport.rb +161 -0
  81. data/lib/thrift/serde_constants.rb +92 -0
  82. data/lib/thrift/serde_types.rb +7 -0
  83. data/lib/thrift/t_c_l_i_service.rb +1054 -0
  84. data/lib/thrift/t_c_l_i_service_constants.rb +72 -0
  85. data/lib/thrift/t_c_l_i_service_types.rb +1768 -0
  86. data/lib/thrift/thrift_hive.rb +508 -0
  87. data/lib/thrift/thrift_hive_metastore.rb +3856 -0
  88. data/spec/database_test.rb +56 -0
  89. data/spec/dataset_test.rb +1268 -0
  90. data/spec/files/bad_down_migration/001_create_alt_basic.rb +4 -0
  91. data/spec/files/bad_down_migration/002_create_alt_advanced.rb +4 -0
  92. data/spec/files/bad_timestamped_migrations/1273253849_create_sessions.rb +9 -0
  93. data/spec/files/bad_timestamped_migrations/1273253851_create_nodes.rb +9 -0
  94. data/spec/files/bad_timestamped_migrations/1273253853_3_create_users.rb +3 -0
  95. data/spec/files/bad_up_migration/001_create_alt_basic.rb +4 -0
  96. data/spec/files/bad_up_migration/002_create_alt_advanced.rb +3 -0
  97. data/spec/files/convert_to_timestamp_migrations/001_create_sessions.rb +9 -0
  98. data/spec/files/convert_to_timestamp_migrations/002_create_nodes.rb +9 -0
  99. data/spec/files/convert_to_timestamp_migrations/003_3_create_users.rb +4 -0
  100. data/spec/files/convert_to_timestamp_migrations/1273253850_create_artists.rb +9 -0
  101. data/spec/files/convert_to_timestamp_migrations/1273253852_create_albums.rb +9 -0
  102. data/spec/files/duplicate_timestamped_migrations/1273253849_create_sessions.rb +9 -0
  103. data/spec/files/duplicate_timestamped_migrations/1273253853_create_nodes.rb +9 -0
  104. data/spec/files/duplicate_timestamped_migrations/1273253853_create_users.rb +4 -0
  105. data/spec/files/integer_migrations/001_create_sessions.rb +9 -0
  106. data/spec/files/integer_migrations/002_create_nodes.rb +9 -0
  107. data/spec/files/integer_migrations/003_3_create_users.rb +4 -0
  108. data/spec/files/interleaved_timestamped_migrations/1273253849_create_sessions.rb +9 -0
  109. data/spec/files/interleaved_timestamped_migrations/1273253850_create_artists.rb +9 -0
  110. data/spec/files/interleaved_timestamped_migrations/1273253851_create_nodes.rb +9 -0
  111. data/spec/files/interleaved_timestamped_migrations/1273253852_create_albums.rb +9 -0
  112. data/spec/files/interleaved_timestamped_migrations/1273253853_3_create_users.rb +4 -0
  113. data/spec/files/reversible_migrations/001_reversible.rb +5 -0
  114. data/spec/files/reversible_migrations/002_reversible.rb +5 -0
  115. data/spec/files/reversible_migrations/003_reversible.rb +5 -0
  116. data/spec/files/reversible_migrations/004_reversible.rb +5 -0
  117. data/spec/files/reversible_migrations/005_reversible.rb +10 -0
  118. data/spec/files/timestamped_migrations/1273253849_create_sessions.rb +9 -0
  119. data/spec/files/timestamped_migrations/1273253851_create_nodes.rb +9 -0
  120. data/spec/files/timestamped_migrations/1273253853_3_create_users.rb +4 -0
  121. data/spec/impala_test.rb +290 -0
  122. data/spec/migrator_test.rb +240 -0
  123. data/spec/plugin_test.rb +91 -0
  124. data/spec/prepared_statement_test.rb +327 -0
  125. data/spec/schema_test.rb +356 -0
  126. data/spec/spec_helper.rb +19 -0
  127. data/spec/timezone_test.rb +86 -0
  128. data/spec/type_test.rb +99 -0
  129. metadata +294 -0
@@ -0,0 +1,13 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.3)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 'impala_service_types'
9
+
10
+ module Impala
11
+ module Protocol
12
+ end
13
+ end
@@ -0,0 +1,192 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.3)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 'exec_stats_types'
9
+ require 'status_types'
10
+ require 'types_types'
11
+ require 'beeswax_types'
12
+ require 't_c_l_i_service_types'
13
+
14
+
15
+ module Impala
16
+ module Protocol
17
+ module TImpalaQueryOptions
18
+ ABORT_ON_ERROR = 0
19
+ MAX_ERRORS = 1
20
+ DISABLE_CODEGEN = 2
21
+ BATCH_SIZE = 3
22
+ MEM_LIMIT = 4
23
+ NUM_NODES = 5
24
+ MAX_SCAN_RANGE_LENGTH = 6
25
+ MAX_IO_BUFFERS = 7
26
+ NUM_SCANNER_THREADS = 8
27
+ ALLOW_UNSUPPORTED_FORMATS = 9
28
+ DEFAULT_ORDER_BY_LIMIT = 10
29
+ DEBUG_ACTION = 11
30
+ ABORT_ON_DEFAULT_LIMIT_EXCEEDED = 12
31
+ COMPRESSION_CODEC = 13
32
+ SEQ_COMPRESSION_MODE = 14
33
+ HBASE_CACHING = 15
34
+ HBASE_CACHE_BLOCKS = 16
35
+ PARQUET_FILE_SIZE = 17
36
+ EXPLAIN_LEVEL = 18
37
+ SYNC_DDL = 19
38
+ REQUEST_POOL = 20
39
+ V_CPU_CORES = 21
40
+ RESERVATION_REQUEST_TIMEOUT = 22
41
+ DISABLE_CACHED_READS = 23
42
+ DISABLE_OUTERMOST_TOPN = 24
43
+ RM_INITIAL_MEM = 25
44
+ QUERY_TIMEOUT_S = 26
45
+ MAX_BLOCK_MGR_MEMORY = 27
46
+ APPX_COUNT_DISTINCT = 28
47
+ DISABLE_UNSAFE_SPILLS = 29
48
+ EXEC_SINGLE_NODE_ROWS_THRESHOLD = 30
49
+ OPTIMIZE_PARTITION_KEY_SCANS = 31
50
+ REPLICA_PREFERENCE = 32
51
+ RANDOM_REPLICA = 33
52
+ SCAN_NODE_CODEGEN_THRESHOLD = 34
53
+ DISABLE_STREAMING_PREAGGREGATIONS = 35
54
+ RUNTIME_FILTER_MODE = 36
55
+ RUNTIME_BLOOM_FILTER_SIZE = 37
56
+ RUNTIME_FILTER_WAIT_TIME_MS = 38
57
+ DISABLE_ROW_RUNTIME_FILTERING = 39
58
+ MAX_NUM_RUNTIME_FILTERS = 40
59
+ PARQUET_ANNOTATE_STRINGS_UTF8 = 41
60
+ VALUE_MAP = {0 => "ABORT_ON_ERROR", 1 => "MAX_ERRORS", 2 => "DISABLE_CODEGEN", 3 => "BATCH_SIZE", 4 => "MEM_LIMIT", 5 => "NUM_NODES", 6 => "MAX_SCAN_RANGE_LENGTH", 7 => "MAX_IO_BUFFERS", 8 => "NUM_SCANNER_THREADS", 9 => "ALLOW_UNSUPPORTED_FORMATS", 10 => "DEFAULT_ORDER_BY_LIMIT", 11 => "DEBUG_ACTION", 12 => "ABORT_ON_DEFAULT_LIMIT_EXCEEDED", 13 => "COMPRESSION_CODEC", 14 => "SEQ_COMPRESSION_MODE", 15 => "HBASE_CACHING", 16 => "HBASE_CACHE_BLOCKS", 17 => "PARQUET_FILE_SIZE", 18 => "EXPLAIN_LEVEL", 19 => "SYNC_DDL", 20 => "REQUEST_POOL", 21 => "V_CPU_CORES", 22 => "RESERVATION_REQUEST_TIMEOUT", 23 => "DISABLE_CACHED_READS", 24 => "DISABLE_OUTERMOST_TOPN", 25 => "RM_INITIAL_MEM", 26 => "QUERY_TIMEOUT_S", 27 => "MAX_BLOCK_MGR_MEMORY", 28 => "APPX_COUNT_DISTINCT", 29 => "DISABLE_UNSAFE_SPILLS", 30 => "EXEC_SINGLE_NODE_ROWS_THRESHOLD", 31 => "OPTIMIZE_PARTITION_KEY_SCANS", 32 => "REPLICA_PREFERENCE", 33 => "RANDOM_REPLICA", 34 => "SCAN_NODE_CODEGEN_THRESHOLD", 35 => "DISABLE_STREAMING_PREAGGREGATIONS", 36 => "RUNTIME_FILTER_MODE", 37 => "RUNTIME_BLOOM_FILTER_SIZE", 38 => "RUNTIME_FILTER_WAIT_TIME_MS", 39 => "DISABLE_ROW_RUNTIME_FILTERING", 40 => "MAX_NUM_RUNTIME_FILTERS", 41 => "PARQUET_ANNOTATE_STRINGS_UTF8"}
61
+ VALID_VALUES = Set.new([ABORT_ON_ERROR, MAX_ERRORS, DISABLE_CODEGEN, BATCH_SIZE, MEM_LIMIT, NUM_NODES, MAX_SCAN_RANGE_LENGTH, MAX_IO_BUFFERS, NUM_SCANNER_THREADS, ALLOW_UNSUPPORTED_FORMATS, DEFAULT_ORDER_BY_LIMIT, DEBUG_ACTION, ABORT_ON_DEFAULT_LIMIT_EXCEEDED, COMPRESSION_CODEC, SEQ_COMPRESSION_MODE, HBASE_CACHING, HBASE_CACHE_BLOCKS, PARQUET_FILE_SIZE, EXPLAIN_LEVEL, SYNC_DDL, REQUEST_POOL, V_CPU_CORES, RESERVATION_REQUEST_TIMEOUT, DISABLE_CACHED_READS, DISABLE_OUTERMOST_TOPN, RM_INITIAL_MEM, QUERY_TIMEOUT_S, MAX_BLOCK_MGR_MEMORY, APPX_COUNT_DISTINCT, DISABLE_UNSAFE_SPILLS, EXEC_SINGLE_NODE_ROWS_THRESHOLD, OPTIMIZE_PARTITION_KEY_SCANS, REPLICA_PREFERENCE, RANDOM_REPLICA, SCAN_NODE_CODEGEN_THRESHOLD, DISABLE_STREAMING_PREAGGREGATIONS, RUNTIME_FILTER_MODE, RUNTIME_BLOOM_FILTER_SIZE, RUNTIME_FILTER_WAIT_TIME_MS, DISABLE_ROW_RUNTIME_FILTERING, MAX_NUM_RUNTIME_FILTERS, PARQUET_ANNOTATE_STRINGS_UTF8]).freeze
62
+ end
63
+
64
+ class TInsertResult
65
+ include ::Thrift::Struct, ::Thrift::Struct_Union
66
+ ROWS_APPENDED = 1
67
+
68
+ FIELDS = {
69
+ ROWS_APPENDED => {:type => ::Thrift::Types::MAP, :name => 'rows_appended', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I64}}
70
+ }
71
+
72
+ def struct_fields; FIELDS; end
73
+
74
+ def validate
75
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field rows_appended is unset!') unless @rows_appended
76
+ end
77
+
78
+ ::Thrift::Struct.generate_accessors self
79
+ end
80
+
81
+ class TPingImpalaServiceResp
82
+ include ::Thrift::Struct, ::Thrift::Struct_Union
83
+ VERSION = 1
84
+
85
+ FIELDS = {
86
+ VERSION => {:type => ::Thrift::Types::STRING, :name => 'version'}
87
+ }
88
+
89
+ def struct_fields; FIELDS; end
90
+
91
+ def validate
92
+ end
93
+
94
+ ::Thrift::Struct.generate_accessors self
95
+ end
96
+
97
+ class TResetTableReq
98
+ include ::Thrift::Struct, ::Thrift::Struct_Union
99
+ DB_NAME = 1
100
+ TABLE_NAME = 2
101
+
102
+ FIELDS = {
103
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
104
+ TABLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'table_name'}
105
+ }
106
+
107
+ def struct_fields; FIELDS; end
108
+
109
+ def validate
110
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field db_name is unset!') unless @db_name
111
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field table_name is unset!') unless @table_name
112
+ end
113
+
114
+ ::Thrift::Struct.generate_accessors self
115
+ end
116
+
117
+ class TGetExecSummaryReq
118
+ include ::Thrift::Struct, ::Thrift::Struct_Union
119
+ OPERATIONHANDLE = 1
120
+ SESSIONHANDLE = 2
121
+
122
+ FIELDS = {
123
+ OPERATIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'operationHandle', :class => ::Impala::Protocol::TOperationHandle, :optional => true},
124
+ SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Impala::Protocol::TSessionHandle, :optional => true}
125
+ }
126
+
127
+ def struct_fields; FIELDS; end
128
+
129
+ def validate
130
+ end
131
+
132
+ ::Thrift::Struct.generate_accessors self
133
+ end
134
+
135
+ class TGetExecSummaryResp
136
+ include ::Thrift::Struct, ::Thrift::Struct_Union
137
+ STATUS = 1
138
+ SUMMARY = 2
139
+
140
+ FIELDS = {
141
+ STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Impala::Protocol::TStatus},
142
+ SUMMARY => {:type => ::Thrift::Types::STRUCT, :name => 'summary', :class => ::Impala::Protocol::TExecSummary, :optional => true}
143
+ }
144
+
145
+ def struct_fields; FIELDS; end
146
+
147
+ def validate
148
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
149
+ end
150
+
151
+ ::Thrift::Struct.generate_accessors self
152
+ end
153
+
154
+ class TGetRuntimeProfileReq
155
+ include ::Thrift::Struct, ::Thrift::Struct_Union
156
+ OPERATIONHANDLE = 1
157
+ SESSIONHANDLE = 2
158
+
159
+ FIELDS = {
160
+ OPERATIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'operationHandle', :class => ::Impala::Protocol::TOperationHandle, :optional => true},
161
+ SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Impala::Protocol::TSessionHandle, :optional => true}
162
+ }
163
+
164
+ def struct_fields; FIELDS; end
165
+
166
+ def validate
167
+ end
168
+
169
+ ::Thrift::Struct.generate_accessors self
170
+ end
171
+
172
+ class TGetRuntimeProfileResp
173
+ include ::Thrift::Struct, ::Thrift::Struct_Union
174
+ STATUS = 1
175
+ PROFILE = 2
176
+
177
+ FIELDS = {
178
+ STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Impala::Protocol::TStatus},
179
+ PROFILE => {:type => ::Thrift::Types::STRING, :name => 'profile', :optional => true}
180
+ }
181
+
182
+ def struct_fields; FIELDS; end
183
+
184
+ def validate
185
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
186
+ end
187
+
188
+ ::Thrift::Struct.generate_accessors self
189
+ end
190
+
191
+ end
192
+ end
@@ -0,0 +1,13 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.3)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 'status_types'
9
+
10
+ module Impala
11
+ module Protocol
12
+ end
13
+ end
@@ -0,0 +1,46 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.3)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+
9
+ module Impala
10
+ module Protocol
11
+ module TStatusCode
12
+ OK = 0
13
+ CANCELLED = 1
14
+ ANALYSIS_ERROR = 2
15
+ NOT_IMPLEMENTED_ERROR = 3
16
+ RUNTIME_ERROR = 4
17
+ MEM_LIMIT_EXCEEDED = 5
18
+ INTERNAL_ERROR = 6
19
+ VALUE_MAP = {0 => "OK", 1 => "CANCELLED", 2 => "ANALYSIS_ERROR", 3 => "NOT_IMPLEMENTED_ERROR", 4 => "RUNTIME_ERROR", 5 => "MEM_LIMIT_EXCEEDED", 6 => "INTERNAL_ERROR"}
20
+ VALID_VALUES = Set.new([OK, CANCELLED, ANALYSIS_ERROR, NOT_IMPLEMENTED_ERROR, RUNTIME_ERROR, MEM_LIMIT_EXCEEDED, INTERNAL_ERROR]).freeze
21
+ end
22
+
23
+ class TStatus
24
+ include ::Thrift::Struct, ::Thrift::Struct_Union
25
+ STATUS_CODE = 1
26
+ ERROR_MSGS = 2
27
+
28
+ FIELDS = {
29
+ STATUS_CODE => {:type => ::Thrift::Types::I32, :name => 'status_code', :enum_class => ::Impala::Protocol::TStatusCode},
30
+ ERROR_MSGS => {:type => ::Thrift::Types::LIST, :name => 'error_msgs', :element => {:type => ::Thrift::Types::STRING}}
31
+ }
32
+
33
+ def struct_fields; FIELDS; end
34
+
35
+ def validate
36
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status_code is unset!') unless @status_code
37
+ unless @status_code.nil? || ::Impala::Protocol::TStatusCode::VALID_VALUES.include?(@status_code)
38
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field status_code!')
39
+ end
40
+ end
41
+
42
+ ::Thrift::Struct.generate_accessors self
43
+ end
44
+
45
+ end
46
+ end
@@ -0,0 +1,1108 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.3)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 't_c_l_i_service_types'
9
+
10
+ module Impala
11
+ module Protocol
12
+ module TCLIService
13
+ class Client
14
+ include ::Thrift::Client
15
+
16
+ def OpenSession(req)
17
+ send_OpenSession(req)
18
+ return recv_OpenSession()
19
+ end
20
+
21
+ def send_OpenSession(req)
22
+ send_message('OpenSession', OpenSession_args, :req => req)
23
+ end
24
+
25
+ def recv_OpenSession()
26
+ result = receive_message(OpenSession_result)
27
+ return result.success unless result.success.nil?
28
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'OpenSession failed: unknown result')
29
+ end
30
+
31
+ def CloseSession(req)
32
+ send_CloseSession(req)
33
+ return recv_CloseSession()
34
+ end
35
+
36
+ def send_CloseSession(req)
37
+ send_message('CloseSession', CloseSession_args, :req => req)
38
+ end
39
+
40
+ def recv_CloseSession()
41
+ result = receive_message(CloseSession_result)
42
+ return result.success unless result.success.nil?
43
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'CloseSession failed: unknown result')
44
+ end
45
+
46
+ def GetInfo(req)
47
+ send_GetInfo(req)
48
+ return recv_GetInfo()
49
+ end
50
+
51
+ def send_GetInfo(req)
52
+ send_message('GetInfo', GetInfo_args, :req => req)
53
+ end
54
+
55
+ def recv_GetInfo()
56
+ result = receive_message(GetInfo_result)
57
+ return result.success unless result.success.nil?
58
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetInfo failed: unknown result')
59
+ end
60
+
61
+ def ExecuteStatement(req)
62
+ send_ExecuteStatement(req)
63
+ return recv_ExecuteStatement()
64
+ end
65
+
66
+ def send_ExecuteStatement(req)
67
+ send_message('ExecuteStatement', ExecuteStatement_args, :req => req)
68
+ end
69
+
70
+ def recv_ExecuteStatement()
71
+ result = receive_message(ExecuteStatement_result)
72
+ return result.success unless result.success.nil?
73
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'ExecuteStatement failed: unknown result')
74
+ end
75
+
76
+ def GetTypeInfo(req)
77
+ send_GetTypeInfo(req)
78
+ return recv_GetTypeInfo()
79
+ end
80
+
81
+ def send_GetTypeInfo(req)
82
+ send_message('GetTypeInfo', GetTypeInfo_args, :req => req)
83
+ end
84
+
85
+ def recv_GetTypeInfo()
86
+ result = receive_message(GetTypeInfo_result)
87
+ return result.success unless result.success.nil?
88
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetTypeInfo failed: unknown result')
89
+ end
90
+
91
+ def GetCatalogs(req)
92
+ send_GetCatalogs(req)
93
+ return recv_GetCatalogs()
94
+ end
95
+
96
+ def send_GetCatalogs(req)
97
+ send_message('GetCatalogs', GetCatalogs_args, :req => req)
98
+ end
99
+
100
+ def recv_GetCatalogs()
101
+ result = receive_message(GetCatalogs_result)
102
+ return result.success unless result.success.nil?
103
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetCatalogs failed: unknown result')
104
+ end
105
+
106
+ def GetSchemas(req)
107
+ send_GetSchemas(req)
108
+ return recv_GetSchemas()
109
+ end
110
+
111
+ def send_GetSchemas(req)
112
+ send_message('GetSchemas', GetSchemas_args, :req => req)
113
+ end
114
+
115
+ def recv_GetSchemas()
116
+ result = receive_message(GetSchemas_result)
117
+ return result.success unless result.success.nil?
118
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetSchemas failed: unknown result')
119
+ end
120
+
121
+ def GetTables(req)
122
+ send_GetTables(req)
123
+ return recv_GetTables()
124
+ end
125
+
126
+ def send_GetTables(req)
127
+ send_message('GetTables', GetTables_args, :req => req)
128
+ end
129
+
130
+ def recv_GetTables()
131
+ result = receive_message(GetTables_result)
132
+ return result.success unless result.success.nil?
133
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetTables failed: unknown result')
134
+ end
135
+
136
+ def GetTableTypes(req)
137
+ send_GetTableTypes(req)
138
+ return recv_GetTableTypes()
139
+ end
140
+
141
+ def send_GetTableTypes(req)
142
+ send_message('GetTableTypes', GetTableTypes_args, :req => req)
143
+ end
144
+
145
+ def recv_GetTableTypes()
146
+ result = receive_message(GetTableTypes_result)
147
+ return result.success unless result.success.nil?
148
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetTableTypes failed: unknown result')
149
+ end
150
+
151
+ def GetColumns(req)
152
+ send_GetColumns(req)
153
+ return recv_GetColumns()
154
+ end
155
+
156
+ def send_GetColumns(req)
157
+ send_message('GetColumns', GetColumns_args, :req => req)
158
+ end
159
+
160
+ def recv_GetColumns()
161
+ result = receive_message(GetColumns_result)
162
+ return result.success unless result.success.nil?
163
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetColumns failed: unknown result')
164
+ end
165
+
166
+ def GetFunctions(req)
167
+ send_GetFunctions(req)
168
+ return recv_GetFunctions()
169
+ end
170
+
171
+ def send_GetFunctions(req)
172
+ send_message('GetFunctions', GetFunctions_args, :req => req)
173
+ end
174
+
175
+ def recv_GetFunctions()
176
+ result = receive_message(GetFunctions_result)
177
+ return result.success unless result.success.nil?
178
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetFunctions failed: unknown result')
179
+ end
180
+
181
+ def GetOperationStatus(req)
182
+ send_GetOperationStatus(req)
183
+ return recv_GetOperationStatus()
184
+ end
185
+
186
+ def send_GetOperationStatus(req)
187
+ send_message('GetOperationStatus', GetOperationStatus_args, :req => req)
188
+ end
189
+
190
+ def recv_GetOperationStatus()
191
+ result = receive_message(GetOperationStatus_result)
192
+ return result.success unless result.success.nil?
193
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetOperationStatus failed: unknown result')
194
+ end
195
+
196
+ def CancelOperation(req)
197
+ send_CancelOperation(req)
198
+ return recv_CancelOperation()
199
+ end
200
+
201
+ def send_CancelOperation(req)
202
+ send_message('CancelOperation', CancelOperation_args, :req => req)
203
+ end
204
+
205
+ def recv_CancelOperation()
206
+ result = receive_message(CancelOperation_result)
207
+ return result.success unless result.success.nil?
208
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'CancelOperation failed: unknown result')
209
+ end
210
+
211
+ def CloseOperation(req)
212
+ send_CloseOperation(req)
213
+ return recv_CloseOperation()
214
+ end
215
+
216
+ def send_CloseOperation(req)
217
+ send_message('CloseOperation', CloseOperation_args, :req => req)
218
+ end
219
+
220
+ def recv_CloseOperation()
221
+ result = receive_message(CloseOperation_result)
222
+ return result.success unless result.success.nil?
223
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'CloseOperation failed: unknown result')
224
+ end
225
+
226
+ def GetResultSetMetadata(req)
227
+ send_GetResultSetMetadata(req)
228
+ return recv_GetResultSetMetadata()
229
+ end
230
+
231
+ def send_GetResultSetMetadata(req)
232
+ send_message('GetResultSetMetadata', GetResultSetMetadata_args, :req => req)
233
+ end
234
+
235
+ def recv_GetResultSetMetadata()
236
+ result = receive_message(GetResultSetMetadata_result)
237
+ return result.success unless result.success.nil?
238
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetResultSetMetadata failed: unknown result')
239
+ end
240
+
241
+ def FetchResults(req)
242
+ send_FetchResults(req)
243
+ return recv_FetchResults()
244
+ end
245
+
246
+ def send_FetchResults(req)
247
+ send_message('FetchResults', FetchResults_args, :req => req)
248
+ end
249
+
250
+ def recv_FetchResults()
251
+ result = receive_message(FetchResults_result)
252
+ return result.success unless result.success.nil?
253
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'FetchResults failed: unknown result')
254
+ end
255
+
256
+ def GetDelegationToken(req)
257
+ send_GetDelegationToken(req)
258
+ return recv_GetDelegationToken()
259
+ end
260
+
261
+ def send_GetDelegationToken(req)
262
+ send_message('GetDelegationToken', GetDelegationToken_args, :req => req)
263
+ end
264
+
265
+ def recv_GetDelegationToken()
266
+ result = receive_message(GetDelegationToken_result)
267
+ return result.success unless result.success.nil?
268
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetDelegationToken failed: unknown result')
269
+ end
270
+
271
+ def CancelDelegationToken(req)
272
+ send_CancelDelegationToken(req)
273
+ return recv_CancelDelegationToken()
274
+ end
275
+
276
+ def send_CancelDelegationToken(req)
277
+ send_message('CancelDelegationToken', CancelDelegationToken_args, :req => req)
278
+ end
279
+
280
+ def recv_CancelDelegationToken()
281
+ result = receive_message(CancelDelegationToken_result)
282
+ return result.success unless result.success.nil?
283
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'CancelDelegationToken failed: unknown result')
284
+ end
285
+
286
+ def RenewDelegationToken(req)
287
+ send_RenewDelegationToken(req)
288
+ return recv_RenewDelegationToken()
289
+ end
290
+
291
+ def send_RenewDelegationToken(req)
292
+ send_message('RenewDelegationToken', RenewDelegationToken_args, :req => req)
293
+ end
294
+
295
+ def recv_RenewDelegationToken()
296
+ result = receive_message(RenewDelegationToken_result)
297
+ return result.success unless result.success.nil?
298
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'RenewDelegationToken failed: unknown result')
299
+ end
300
+
301
+ def GetLog(req)
302
+ send_GetLog(req)
303
+ return recv_GetLog()
304
+ end
305
+
306
+ def send_GetLog(req)
307
+ send_message('GetLog', GetLog_args, :req => req)
308
+ end
309
+
310
+ def recv_GetLog()
311
+ result = receive_message(GetLog_result)
312
+ return result.success unless result.success.nil?
313
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetLog failed: unknown result')
314
+ end
315
+
316
+ end
317
+
318
+ class Processor
319
+ include ::Thrift::Processor
320
+
321
+ def process_OpenSession(seqid, iprot, oprot)
322
+ args = read_args(iprot, OpenSession_args)
323
+ result = OpenSession_result.new()
324
+ result.success = @handler.OpenSession(args.req)
325
+ write_result(result, oprot, 'OpenSession', seqid)
326
+ end
327
+
328
+ def process_CloseSession(seqid, iprot, oprot)
329
+ args = read_args(iprot, CloseSession_args)
330
+ result = CloseSession_result.new()
331
+ result.success = @handler.CloseSession(args.req)
332
+ write_result(result, oprot, 'CloseSession', seqid)
333
+ end
334
+
335
+ def process_GetInfo(seqid, iprot, oprot)
336
+ args = read_args(iprot, GetInfo_args)
337
+ result = GetInfo_result.new()
338
+ result.success = @handler.GetInfo(args.req)
339
+ write_result(result, oprot, 'GetInfo', seqid)
340
+ end
341
+
342
+ def process_ExecuteStatement(seqid, iprot, oprot)
343
+ args = read_args(iprot, ExecuteStatement_args)
344
+ result = ExecuteStatement_result.new()
345
+ result.success = @handler.ExecuteStatement(args.req)
346
+ write_result(result, oprot, 'ExecuteStatement', seqid)
347
+ end
348
+
349
+ def process_GetTypeInfo(seqid, iprot, oprot)
350
+ args = read_args(iprot, GetTypeInfo_args)
351
+ result = GetTypeInfo_result.new()
352
+ result.success = @handler.GetTypeInfo(args.req)
353
+ write_result(result, oprot, 'GetTypeInfo', seqid)
354
+ end
355
+
356
+ def process_GetCatalogs(seqid, iprot, oprot)
357
+ args = read_args(iprot, GetCatalogs_args)
358
+ result = GetCatalogs_result.new()
359
+ result.success = @handler.GetCatalogs(args.req)
360
+ write_result(result, oprot, 'GetCatalogs', seqid)
361
+ end
362
+
363
+ def process_GetSchemas(seqid, iprot, oprot)
364
+ args = read_args(iprot, GetSchemas_args)
365
+ result = GetSchemas_result.new()
366
+ result.success = @handler.GetSchemas(args.req)
367
+ write_result(result, oprot, 'GetSchemas', seqid)
368
+ end
369
+
370
+ def process_GetTables(seqid, iprot, oprot)
371
+ args = read_args(iprot, GetTables_args)
372
+ result = GetTables_result.new()
373
+ result.success = @handler.GetTables(args.req)
374
+ write_result(result, oprot, 'GetTables', seqid)
375
+ end
376
+
377
+ def process_GetTableTypes(seqid, iprot, oprot)
378
+ args = read_args(iprot, GetTableTypes_args)
379
+ result = GetTableTypes_result.new()
380
+ result.success = @handler.GetTableTypes(args.req)
381
+ write_result(result, oprot, 'GetTableTypes', seqid)
382
+ end
383
+
384
+ def process_GetColumns(seqid, iprot, oprot)
385
+ args = read_args(iprot, GetColumns_args)
386
+ result = GetColumns_result.new()
387
+ result.success = @handler.GetColumns(args.req)
388
+ write_result(result, oprot, 'GetColumns', seqid)
389
+ end
390
+
391
+ def process_GetFunctions(seqid, iprot, oprot)
392
+ args = read_args(iprot, GetFunctions_args)
393
+ result = GetFunctions_result.new()
394
+ result.success = @handler.GetFunctions(args.req)
395
+ write_result(result, oprot, 'GetFunctions', seqid)
396
+ end
397
+
398
+ def process_GetOperationStatus(seqid, iprot, oprot)
399
+ args = read_args(iprot, GetOperationStatus_args)
400
+ result = GetOperationStatus_result.new()
401
+ result.success = @handler.GetOperationStatus(args.req)
402
+ write_result(result, oprot, 'GetOperationStatus', seqid)
403
+ end
404
+
405
+ def process_CancelOperation(seqid, iprot, oprot)
406
+ args = read_args(iprot, CancelOperation_args)
407
+ result = CancelOperation_result.new()
408
+ result.success = @handler.CancelOperation(args.req)
409
+ write_result(result, oprot, 'CancelOperation', seqid)
410
+ end
411
+
412
+ def process_CloseOperation(seqid, iprot, oprot)
413
+ args = read_args(iprot, CloseOperation_args)
414
+ result = CloseOperation_result.new()
415
+ result.success = @handler.CloseOperation(args.req)
416
+ write_result(result, oprot, 'CloseOperation', seqid)
417
+ end
418
+
419
+ def process_GetResultSetMetadata(seqid, iprot, oprot)
420
+ args = read_args(iprot, GetResultSetMetadata_args)
421
+ result = GetResultSetMetadata_result.new()
422
+ result.success = @handler.GetResultSetMetadata(args.req)
423
+ write_result(result, oprot, 'GetResultSetMetadata', seqid)
424
+ end
425
+
426
+ def process_FetchResults(seqid, iprot, oprot)
427
+ args = read_args(iprot, FetchResults_args)
428
+ result = FetchResults_result.new()
429
+ result.success = @handler.FetchResults(args.req)
430
+ write_result(result, oprot, 'FetchResults', seqid)
431
+ end
432
+
433
+ def process_GetDelegationToken(seqid, iprot, oprot)
434
+ args = read_args(iprot, GetDelegationToken_args)
435
+ result = GetDelegationToken_result.new()
436
+ result.success = @handler.GetDelegationToken(args.req)
437
+ write_result(result, oprot, 'GetDelegationToken', seqid)
438
+ end
439
+
440
+ def process_CancelDelegationToken(seqid, iprot, oprot)
441
+ args = read_args(iprot, CancelDelegationToken_args)
442
+ result = CancelDelegationToken_result.new()
443
+ result.success = @handler.CancelDelegationToken(args.req)
444
+ write_result(result, oprot, 'CancelDelegationToken', seqid)
445
+ end
446
+
447
+ def process_RenewDelegationToken(seqid, iprot, oprot)
448
+ args = read_args(iprot, RenewDelegationToken_args)
449
+ result = RenewDelegationToken_result.new()
450
+ result.success = @handler.RenewDelegationToken(args.req)
451
+ write_result(result, oprot, 'RenewDelegationToken', seqid)
452
+ end
453
+
454
+ def process_GetLog(seqid, iprot, oprot)
455
+ args = read_args(iprot, GetLog_args)
456
+ result = GetLog_result.new()
457
+ result.success = @handler.GetLog(args.req)
458
+ write_result(result, oprot, 'GetLog', seqid)
459
+ end
460
+
461
+ end
462
+
463
+ # HELPER FUNCTIONS AND STRUCTURES
464
+
465
+ class OpenSession_args
466
+ include ::Thrift::Struct, ::Thrift::Struct_Union
467
+ REQ = 1
468
+
469
+ FIELDS = {
470
+ REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::TOpenSessionReq}
471
+ }
472
+
473
+ def struct_fields; FIELDS; end
474
+
475
+ def validate
476
+ end
477
+
478
+ ::Thrift::Struct.generate_accessors self
479
+ end
480
+
481
+ class OpenSession_result
482
+ include ::Thrift::Struct, ::Thrift::Struct_Union
483
+ SUCCESS = 0
484
+
485
+ FIELDS = {
486
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TOpenSessionResp}
487
+ }
488
+
489
+ def struct_fields; FIELDS; end
490
+
491
+ def validate
492
+ end
493
+
494
+ ::Thrift::Struct.generate_accessors self
495
+ end
496
+
497
+ class CloseSession_args
498
+ include ::Thrift::Struct, ::Thrift::Struct_Union
499
+ REQ = 1
500
+
501
+ FIELDS = {
502
+ REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::TCloseSessionReq}
503
+ }
504
+
505
+ def struct_fields; FIELDS; end
506
+
507
+ def validate
508
+ end
509
+
510
+ ::Thrift::Struct.generate_accessors self
511
+ end
512
+
513
+ class CloseSession_result
514
+ include ::Thrift::Struct, ::Thrift::Struct_Union
515
+ SUCCESS = 0
516
+
517
+ FIELDS = {
518
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TCloseSessionResp}
519
+ }
520
+
521
+ def struct_fields; FIELDS; end
522
+
523
+ def validate
524
+ end
525
+
526
+ ::Thrift::Struct.generate_accessors self
527
+ end
528
+
529
+ class GetInfo_args
530
+ include ::Thrift::Struct, ::Thrift::Struct_Union
531
+ REQ = 1
532
+
533
+ FIELDS = {
534
+ REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::TGetInfoReq}
535
+ }
536
+
537
+ def struct_fields; FIELDS; end
538
+
539
+ def validate
540
+ end
541
+
542
+ ::Thrift::Struct.generate_accessors self
543
+ end
544
+
545
+ class GetInfo_result
546
+ include ::Thrift::Struct, ::Thrift::Struct_Union
547
+ SUCCESS = 0
548
+
549
+ FIELDS = {
550
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TGetInfoResp}
551
+ }
552
+
553
+ def struct_fields; FIELDS; end
554
+
555
+ def validate
556
+ end
557
+
558
+ ::Thrift::Struct.generate_accessors self
559
+ end
560
+
561
+ class ExecuteStatement_args
562
+ include ::Thrift::Struct, ::Thrift::Struct_Union
563
+ REQ = 1
564
+
565
+ FIELDS = {
566
+ REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::TExecuteStatementReq}
567
+ }
568
+
569
+ def struct_fields; FIELDS; end
570
+
571
+ def validate
572
+ end
573
+
574
+ ::Thrift::Struct.generate_accessors self
575
+ end
576
+
577
+ class ExecuteStatement_result
578
+ include ::Thrift::Struct, ::Thrift::Struct_Union
579
+ SUCCESS = 0
580
+
581
+ FIELDS = {
582
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TExecuteStatementResp}
583
+ }
584
+
585
+ def struct_fields; FIELDS; end
586
+
587
+ def validate
588
+ end
589
+
590
+ ::Thrift::Struct.generate_accessors self
591
+ end
592
+
593
+ class GetTypeInfo_args
594
+ include ::Thrift::Struct, ::Thrift::Struct_Union
595
+ REQ = 1
596
+
597
+ FIELDS = {
598
+ REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::TGetTypeInfoReq}
599
+ }
600
+
601
+ def struct_fields; FIELDS; end
602
+
603
+ def validate
604
+ end
605
+
606
+ ::Thrift::Struct.generate_accessors self
607
+ end
608
+
609
+ class GetTypeInfo_result
610
+ include ::Thrift::Struct, ::Thrift::Struct_Union
611
+ SUCCESS = 0
612
+
613
+ FIELDS = {
614
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TGetTypeInfoResp}
615
+ }
616
+
617
+ def struct_fields; FIELDS; end
618
+
619
+ def validate
620
+ end
621
+
622
+ ::Thrift::Struct.generate_accessors self
623
+ end
624
+
625
+ class GetCatalogs_args
626
+ include ::Thrift::Struct, ::Thrift::Struct_Union
627
+ REQ = 1
628
+
629
+ FIELDS = {
630
+ REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::TGetCatalogsReq}
631
+ }
632
+
633
+ def struct_fields; FIELDS; end
634
+
635
+ def validate
636
+ end
637
+
638
+ ::Thrift::Struct.generate_accessors self
639
+ end
640
+
641
+ class GetCatalogs_result
642
+ include ::Thrift::Struct, ::Thrift::Struct_Union
643
+ SUCCESS = 0
644
+
645
+ FIELDS = {
646
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TGetCatalogsResp}
647
+ }
648
+
649
+ def struct_fields; FIELDS; end
650
+
651
+ def validate
652
+ end
653
+
654
+ ::Thrift::Struct.generate_accessors self
655
+ end
656
+
657
+ class GetSchemas_args
658
+ include ::Thrift::Struct, ::Thrift::Struct_Union
659
+ REQ = 1
660
+
661
+ FIELDS = {
662
+ REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::TGetSchemasReq}
663
+ }
664
+
665
+ def struct_fields; FIELDS; end
666
+
667
+ def validate
668
+ end
669
+
670
+ ::Thrift::Struct.generate_accessors self
671
+ end
672
+
673
+ class GetSchemas_result
674
+ include ::Thrift::Struct, ::Thrift::Struct_Union
675
+ SUCCESS = 0
676
+
677
+ FIELDS = {
678
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TGetSchemasResp}
679
+ }
680
+
681
+ def struct_fields; FIELDS; end
682
+
683
+ def validate
684
+ end
685
+
686
+ ::Thrift::Struct.generate_accessors self
687
+ end
688
+
689
+ class GetTables_args
690
+ include ::Thrift::Struct, ::Thrift::Struct_Union
691
+ REQ = 1
692
+
693
+ FIELDS = {
694
+ REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::TGetTablesReq}
695
+ }
696
+
697
+ def struct_fields; FIELDS; end
698
+
699
+ def validate
700
+ end
701
+
702
+ ::Thrift::Struct.generate_accessors self
703
+ end
704
+
705
+ class GetTables_result
706
+ include ::Thrift::Struct, ::Thrift::Struct_Union
707
+ SUCCESS = 0
708
+
709
+ FIELDS = {
710
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TGetTablesResp}
711
+ }
712
+
713
+ def struct_fields; FIELDS; end
714
+
715
+ def validate
716
+ end
717
+
718
+ ::Thrift::Struct.generate_accessors self
719
+ end
720
+
721
+ class GetTableTypes_args
722
+ include ::Thrift::Struct, ::Thrift::Struct_Union
723
+ REQ = 1
724
+
725
+ FIELDS = {
726
+ REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::TGetTableTypesReq}
727
+ }
728
+
729
+ def struct_fields; FIELDS; end
730
+
731
+ def validate
732
+ end
733
+
734
+ ::Thrift::Struct.generate_accessors self
735
+ end
736
+
737
+ class GetTableTypes_result
738
+ include ::Thrift::Struct, ::Thrift::Struct_Union
739
+ SUCCESS = 0
740
+
741
+ FIELDS = {
742
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TGetTableTypesResp}
743
+ }
744
+
745
+ def struct_fields; FIELDS; end
746
+
747
+ def validate
748
+ end
749
+
750
+ ::Thrift::Struct.generate_accessors self
751
+ end
752
+
753
+ class GetColumns_args
754
+ include ::Thrift::Struct, ::Thrift::Struct_Union
755
+ REQ = 1
756
+
757
+ FIELDS = {
758
+ REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::TGetColumnsReq}
759
+ }
760
+
761
+ def struct_fields; FIELDS; end
762
+
763
+ def validate
764
+ end
765
+
766
+ ::Thrift::Struct.generate_accessors self
767
+ end
768
+
769
+ class GetColumns_result
770
+ include ::Thrift::Struct, ::Thrift::Struct_Union
771
+ SUCCESS = 0
772
+
773
+ FIELDS = {
774
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TGetColumnsResp}
775
+ }
776
+
777
+ def struct_fields; FIELDS; end
778
+
779
+ def validate
780
+ end
781
+
782
+ ::Thrift::Struct.generate_accessors self
783
+ end
784
+
785
+ class GetFunctions_args
786
+ include ::Thrift::Struct, ::Thrift::Struct_Union
787
+ REQ = 1
788
+
789
+ FIELDS = {
790
+ REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::TGetFunctionsReq}
791
+ }
792
+
793
+ def struct_fields; FIELDS; end
794
+
795
+ def validate
796
+ end
797
+
798
+ ::Thrift::Struct.generate_accessors self
799
+ end
800
+
801
+ class GetFunctions_result
802
+ include ::Thrift::Struct, ::Thrift::Struct_Union
803
+ SUCCESS = 0
804
+
805
+ FIELDS = {
806
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TGetFunctionsResp}
807
+ }
808
+
809
+ def struct_fields; FIELDS; end
810
+
811
+ def validate
812
+ end
813
+
814
+ ::Thrift::Struct.generate_accessors self
815
+ end
816
+
817
+ class GetOperationStatus_args
818
+ include ::Thrift::Struct, ::Thrift::Struct_Union
819
+ REQ = 1
820
+
821
+ FIELDS = {
822
+ REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::TGetOperationStatusReq}
823
+ }
824
+
825
+ def struct_fields; FIELDS; end
826
+
827
+ def validate
828
+ end
829
+
830
+ ::Thrift::Struct.generate_accessors self
831
+ end
832
+
833
+ class GetOperationStatus_result
834
+ include ::Thrift::Struct, ::Thrift::Struct_Union
835
+ SUCCESS = 0
836
+
837
+ FIELDS = {
838
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TGetOperationStatusResp}
839
+ }
840
+
841
+ def struct_fields; FIELDS; end
842
+
843
+ def validate
844
+ end
845
+
846
+ ::Thrift::Struct.generate_accessors self
847
+ end
848
+
849
+ class CancelOperation_args
850
+ include ::Thrift::Struct, ::Thrift::Struct_Union
851
+ REQ = 1
852
+
853
+ FIELDS = {
854
+ REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::TCancelOperationReq}
855
+ }
856
+
857
+ def struct_fields; FIELDS; end
858
+
859
+ def validate
860
+ end
861
+
862
+ ::Thrift::Struct.generate_accessors self
863
+ end
864
+
865
+ class CancelOperation_result
866
+ include ::Thrift::Struct, ::Thrift::Struct_Union
867
+ SUCCESS = 0
868
+
869
+ FIELDS = {
870
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TCancelOperationResp}
871
+ }
872
+
873
+ def struct_fields; FIELDS; end
874
+
875
+ def validate
876
+ end
877
+
878
+ ::Thrift::Struct.generate_accessors self
879
+ end
880
+
881
+ class CloseOperation_args
882
+ include ::Thrift::Struct, ::Thrift::Struct_Union
883
+ REQ = 1
884
+
885
+ FIELDS = {
886
+ REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::TCloseOperationReq}
887
+ }
888
+
889
+ def struct_fields; FIELDS; end
890
+
891
+ def validate
892
+ end
893
+
894
+ ::Thrift::Struct.generate_accessors self
895
+ end
896
+
897
+ class CloseOperation_result
898
+ include ::Thrift::Struct, ::Thrift::Struct_Union
899
+ SUCCESS = 0
900
+
901
+ FIELDS = {
902
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TCloseOperationResp}
903
+ }
904
+
905
+ def struct_fields; FIELDS; end
906
+
907
+ def validate
908
+ end
909
+
910
+ ::Thrift::Struct.generate_accessors self
911
+ end
912
+
913
+ class GetResultSetMetadata_args
914
+ include ::Thrift::Struct, ::Thrift::Struct_Union
915
+ REQ = 1
916
+
917
+ FIELDS = {
918
+ REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::TGetResultSetMetadataReq}
919
+ }
920
+
921
+ def struct_fields; FIELDS; end
922
+
923
+ def validate
924
+ end
925
+
926
+ ::Thrift::Struct.generate_accessors self
927
+ end
928
+
929
+ class GetResultSetMetadata_result
930
+ include ::Thrift::Struct, ::Thrift::Struct_Union
931
+ SUCCESS = 0
932
+
933
+ FIELDS = {
934
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TGetResultSetMetadataResp}
935
+ }
936
+
937
+ def struct_fields; FIELDS; end
938
+
939
+ def validate
940
+ end
941
+
942
+ ::Thrift::Struct.generate_accessors self
943
+ end
944
+
945
+ class FetchResults_args
946
+ include ::Thrift::Struct, ::Thrift::Struct_Union
947
+ REQ = 1
948
+
949
+ FIELDS = {
950
+ REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::TFetchResultsReq}
951
+ }
952
+
953
+ def struct_fields; FIELDS; end
954
+
955
+ def validate
956
+ end
957
+
958
+ ::Thrift::Struct.generate_accessors self
959
+ end
960
+
961
+ class FetchResults_result
962
+ include ::Thrift::Struct, ::Thrift::Struct_Union
963
+ SUCCESS = 0
964
+
965
+ FIELDS = {
966
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TFetchResultsResp}
967
+ }
968
+
969
+ def struct_fields; FIELDS; end
970
+
971
+ def validate
972
+ end
973
+
974
+ ::Thrift::Struct.generate_accessors self
975
+ end
976
+
977
+ class GetDelegationToken_args
978
+ include ::Thrift::Struct, ::Thrift::Struct_Union
979
+ REQ = 1
980
+
981
+ FIELDS = {
982
+ REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::TGetDelegationTokenReq}
983
+ }
984
+
985
+ def struct_fields; FIELDS; end
986
+
987
+ def validate
988
+ end
989
+
990
+ ::Thrift::Struct.generate_accessors self
991
+ end
992
+
993
+ class GetDelegationToken_result
994
+ include ::Thrift::Struct, ::Thrift::Struct_Union
995
+ SUCCESS = 0
996
+
997
+ FIELDS = {
998
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TGetDelegationTokenResp}
999
+ }
1000
+
1001
+ def struct_fields; FIELDS; end
1002
+
1003
+ def validate
1004
+ end
1005
+
1006
+ ::Thrift::Struct.generate_accessors self
1007
+ end
1008
+
1009
+ class CancelDelegationToken_args
1010
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1011
+ REQ = 1
1012
+
1013
+ FIELDS = {
1014
+ REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::TCancelDelegationTokenReq}
1015
+ }
1016
+
1017
+ def struct_fields; FIELDS; end
1018
+
1019
+ def validate
1020
+ end
1021
+
1022
+ ::Thrift::Struct.generate_accessors self
1023
+ end
1024
+
1025
+ class CancelDelegationToken_result
1026
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1027
+ SUCCESS = 0
1028
+
1029
+ FIELDS = {
1030
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TCancelDelegationTokenResp}
1031
+ }
1032
+
1033
+ def struct_fields; FIELDS; end
1034
+
1035
+ def validate
1036
+ end
1037
+
1038
+ ::Thrift::Struct.generate_accessors self
1039
+ end
1040
+
1041
+ class RenewDelegationToken_args
1042
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1043
+ REQ = 1
1044
+
1045
+ FIELDS = {
1046
+ REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::TRenewDelegationTokenReq}
1047
+ }
1048
+
1049
+ def struct_fields; FIELDS; end
1050
+
1051
+ def validate
1052
+ end
1053
+
1054
+ ::Thrift::Struct.generate_accessors self
1055
+ end
1056
+
1057
+ class RenewDelegationToken_result
1058
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1059
+ SUCCESS = 0
1060
+
1061
+ FIELDS = {
1062
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TRenewDelegationTokenResp}
1063
+ }
1064
+
1065
+ def struct_fields; FIELDS; end
1066
+
1067
+ def validate
1068
+ end
1069
+
1070
+ ::Thrift::Struct.generate_accessors self
1071
+ end
1072
+
1073
+ class GetLog_args
1074
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1075
+ REQ = 1
1076
+
1077
+ FIELDS = {
1078
+ REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::TGetLogReq}
1079
+ }
1080
+
1081
+ def struct_fields; FIELDS; end
1082
+
1083
+ def validate
1084
+ end
1085
+
1086
+ ::Thrift::Struct.generate_accessors self
1087
+ end
1088
+
1089
+ class GetLog_result
1090
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1091
+ SUCCESS = 0
1092
+
1093
+ FIELDS = {
1094
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TGetLogResp}
1095
+ }
1096
+
1097
+ def struct_fields; FIELDS; end
1098
+
1099
+ def validate
1100
+ end
1101
+
1102
+ ::Thrift::Struct.generate_accessors self
1103
+ end
1104
+
1105
+ end
1106
+
1107
+ end
1108
+ end