lib/impala/protocol/facebook_service.rb in impala-0.1.6 vs lib/impala/protocol/facebook_service.rb in impala-0.2.0

- old
+ new

@@ -1,7 +1,7 @@ # -# Autogenerated by Thrift Compiler (0.8.0) +# Autogenerated by Thrift Compiler (0.9.1) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # require 'thrift' @@ -308,11 +308,11 @@ class GetName_result include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 FIELDS = { - SUCCESS => { :type => ::Thrift::Types::STRING, :name => 'success' } + SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'} } def struct_fields; FIELDS; end def validate @@ -339,11 +339,11 @@ class GetVersion_result include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 FIELDS = { - SUCCESS => { :type => ::Thrift::Types::STRING, :name => 'success' } + SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'} } def struct_fields; FIELDS; end def validate @@ -370,17 +370,17 @@ class GetStatus_result include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 FIELDS = { - SUCCESS => { :type => ::Thrift::Types::I32, :name => 'success', :enum_class => Impala::Protocol::Fb303::Fb_status } + SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success', :enum_class => ::Impala::Protocol::Fb303::Fb_status} } def struct_fields; FIELDS; end def validate - unless @success.nil? || Impala::Protocol::Fb303::Fb_status::VALID_VALUES.include?(@success) + unless @success.nil? || ::Impala::Protocol::Fb303::Fb_status::VALID_VALUES.include?(@success) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field success!') end end ::Thrift::Struct.generate_accessors self @@ -404,11 +404,11 @@ class GetStatusDetails_result include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 FIELDS = { - SUCCESS => { :type => ::Thrift::Types::STRING, :name => 'success' } + SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'} } def struct_fields; FIELDS; end def validate @@ -435,11 +435,11 @@ class GetCounters_result include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 FIELDS = { - SUCCESS => { :type => ::Thrift::Types::MAP, :name => 'success', :key => { :type => ::Thrift::Types::STRING }, :value => { :type => ::Thrift::Types::I64 } } + SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I64}} } def struct_fields; FIELDS; end def validate @@ -451,11 +451,11 @@ class GetCounter_args include ::Thrift::Struct, ::Thrift::Struct_Union KEY = 1 FIELDS = { - KEY => { :type => ::Thrift::Types::STRING, :name => 'key' } + KEY => {:type => ::Thrift::Types::STRING, :name => 'key'} } def struct_fields; FIELDS; end def validate @@ -467,11 +467,11 @@ class GetCounter_result include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 FIELDS = { - SUCCESS => { :type => ::Thrift::Types::I64, :name => 'success' } + SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'} } def struct_fields; FIELDS; end def validate @@ -484,12 +484,12 @@ include ::Thrift::Struct, ::Thrift::Struct_Union KEY = 1 VALUE = 2 FIELDS = { - KEY => { :type => ::Thrift::Types::STRING, :name => 'key' }, - VALUE => { :type => ::Thrift::Types::STRING, :name => 'value' } + KEY => {:type => ::Thrift::Types::STRING, :name => 'key'}, + VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'} } def struct_fields; FIELDS; end def validate @@ -516,11 +516,11 @@ class GetOption_args include ::Thrift::Struct, ::Thrift::Struct_Union KEY = 1 FIELDS = { - KEY => { :type => ::Thrift::Types::STRING, :name => 'key' } + KEY => {:type => ::Thrift::Types::STRING, :name => 'key'} } def struct_fields; FIELDS; end def validate @@ -532,11 +532,11 @@ class GetOption_result include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 FIELDS = { - SUCCESS => { :type => ::Thrift::Types::STRING, :name => 'success' } + SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'} } def struct_fields; FIELDS; end def validate @@ -563,11 +563,11 @@ class GetOptions_result include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 FIELDS = { - SUCCESS => { :type => ::Thrift::Types::MAP, :name => 'success', :key => { :type => ::Thrift::Types::STRING }, :value => { :type => ::Thrift::Types::STRING } } + SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}} } def struct_fields; FIELDS; end def validate @@ -579,11 +579,11 @@ class GetCpuProfile_args include ::Thrift::Struct, ::Thrift::Struct_Union PROFILEDURATIONINSEC = 1 FIELDS = { - PROFILEDURATIONINSEC => { :type => ::Thrift::Types::I32, :name => 'profileDurationInSec' } + PROFILEDURATIONINSEC => {:type => ::Thrift::Types::I32, :name => 'profileDurationInSec'} } def struct_fields; FIELDS; end def validate @@ -595,11 +595,11 @@ class GetCpuProfile_result include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 FIELDS = { - SUCCESS => { :type => ::Thrift::Types::STRING, :name => 'success' } + SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'} } def struct_fields; FIELDS; end def validate @@ -626,10 +626,10 @@ class AliveSince_result include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 FIELDS = { - SUCCESS => { :type => ::Thrift::Types::I64, :name => 'success' } + SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'} } def struct_fields; FIELDS; end def validate